diff --git a/composer.json b/composer.json index e157113..fda8381 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ } }, "require": { - "php": ">=7.4", + "php": ">=7.4|^8.0", "webmozart/assert": "^1.0", "symfony/event-dispatcher": "^4.0|^5.0|^6.0|^7.0" }, diff --git a/tests/Callbacks/CallClosureOnFailureTest.php b/tests/Callbacks/CallClosureOnFailureTest.php index b9b92e6..5a21c7a 100644 --- a/tests/Callbacks/CallClosureOnFailureTest.php +++ b/tests/Callbacks/CallClosureOnFailureTest.php @@ -25,8 +25,8 @@ function () { 'context', new StateMachine( 'state', - $this->createMock(StateRegistry::class), - $this->createMock(EventRegistry::class), + $this->createStub(StateRegistry::class), + $this->createStub(EventRegistry::class), ) ); } diff --git a/tests/StateMachineTest.php b/tests/StateMachineTest.php index 9b4b021..07d134e 100644 --- a/tests/StateMachineTest.php +++ b/tests/StateMachineTest.php @@ -104,7 +104,7 @@ public function test_it_should_visit_the_transitions(): void { $registry = $this->createMock(StateRegistry::class); $machine = new StateMachine('', $registry, $this->events); - $visitor = $this->createMock(TransitionVisitor::class); + $visitor = $this->createStub(TransitionVisitor::class); $registry ->expects($this->once())