From a7ae02edd77bc6b2621b20c91f34b2d03f3cacb2 Mon Sep 17 00:00:00 2001 From: Timon de Groot Date: Wed, 20 Jan 2021 10:13:05 +0100 Subject: [PATCH 1/2] Update composer.json --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 634dde3..b4f21ce 100644 --- a/composer.json +++ b/composer.json @@ -11,8 +11,8 @@ ], "minimum-stability": "stable", "require": { - "vimeo/psalm": "^3.10", - "php": "^7.1", + "vimeo/psalm": "^3.10|^4.0", + "php": "^7.3", "ext-simplexml": "*" }, "extra": { From c253e1c9c2ea083ee73eba69219368856f1ec84b Mon Sep 17 00:00:00 2001 From: Timon de Groot Date: Wed, 20 Jan 2021 10:27:57 +0100 Subject: [PATCH 2/2] Add compatibility with Psalm 4 --- composer.json | 2 +- src/Plugin.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index b4f21ce..8409e1f 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ ], "minimum-stability": "stable", "require": { - "vimeo/psalm": "^3.10|^4.0", + "vimeo/psalm": "^4.0", "php": "^7.3", "ext-simplexml": "*" }, diff --git a/src/Plugin.php b/src/Plugin.php index 4ec6eba..d1453f3 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -24,8 +24,7 @@ */ class Plugin implements PluginEntryPointInterface { - /** @return void */ - public function __invoke(RegistrationInterface $psalm, ?SimpleXMLElement $config = null) + public function __invoke(RegistrationInterface $psalm, ?SimpleXMLElement $config = null): void { $mocker = new FactoryMocker($psalm); $mocker->registerAutoloader(); @@ -55,5 +54,4 @@ private function loadStubs(RegistrationInterface $psalm): void } } } - }