From bf4d3f3df3c286286ffcf76255aaeb5959c2ee00 Mon Sep 17 00:00:00 2001 From: Thomas Fini Hansen Date: Thu, 24 Jan 2019 09:54:27 +0100 Subject: [PATCH 1/2] Allow phpspec 5 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": { From 0d231105d384ee6a835400ef5e58d5f32f4093cc Mon Sep 17 00:00:00 2001 From: Thomas Fini Hansen Date: Thu, 24 Jan 2019 10:08:06 +0100 Subject: [PATCH 2/2] Fix up typehints --- src/Runner/Maintainer/LaravelMaintainer.php | 4 ++-- src/Runner/Maintainer/PresenterMaintainer.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 { } /**