diff --git a/composer.json b/composer.json index 52d47da..512bbbf 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "license": "MIT", "require": { "php": "^7.0", - "phpspec/phpspec": "^4.0", + "phpspec/phpspec": "^4.0 || ^5.0", "laravel/framework": "^5.4" }, "autoload": { diff --git a/src/Runner/Maintainer/LaravelMaintainer.php b/src/Runner/Maintainer/LaravelMaintainer.php index 39dee61..68e8fac 100644 --- a/src/Runner/Maintainer/LaravelMaintainer.php +++ b/src/Runner/Maintainer/LaravelMaintainer.php @@ -53,7 +53,7 @@ public function prepare( Specification $context, MatcherManager $matchers, CollaboratorManager $collaborators - ) { + ) : void { $reflection = $example->getSpecification()->getClassReflection()->getMethod('setLaravel'); $reflection->invokeArgs($context, [$this->laravel]); } @@ -66,7 +66,7 @@ public function teardown( Specification $context, MatcherManager $matchers, CollaboratorManager $collaborators - ) { + ) : void { } /** diff --git a/src/Runner/Maintainer/PresenterMaintainer.php b/src/Runner/Maintainer/PresenterMaintainer.php index 5706374..6bed7c4 100644 --- a/src/Runner/Maintainer/PresenterMaintainer.php +++ b/src/Runner/Maintainer/PresenterMaintainer.php @@ -50,7 +50,7 @@ public function prepare( Specification $context, MatcherManager $matchers, CollaboratorManager $collaborators - ) { + ) : void { $reflection = $example->getSpecification()->getClassReflection()->getMethod('setPresenter'); $reflection->invokeArgs($context, [$this->presenter]); } @@ -63,7 +63,7 @@ public function teardown( Specification $context, MatcherManager $matchers, CollaboratorManager $collaborators - ) { + ) : void { } /**