From 84a20a72bf947aaf08a30e84bee5de9868a66e3f Mon Sep 17 00:00:00 2001 From: Evgeniy Zyubin Date: Tue, 20 Dec 2022 20:40:51 +0300 Subject: [PATCH] Update the psr/container versions from ^1.0 to ^1.0|^2.0 (#2) --- composer.json | 6 +++--- src/Container.php | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 04b4713..ce3a47a 100644 --- a/composer.json +++ b/composer.json @@ -18,12 +18,12 @@ }, "require": { "php": "^7.4|^8.0", - "psr/container": "^1.0" + "psr/container": "^1.0|^2.0" }, "require-dev": { "phpunit/phpunit": "^9.5", - "squizlabs/php_codesniffer": "^3.5", - "vimeo/psalm": "^4.3" + "squizlabs/php_codesniffer": "^3.7", + "vimeo/psalm": "^5.3" }, "provide": { "psr/container-implementation": "1.0" diff --git a/src/Container.php b/src/Container.php index cc33137..fac459a 100644 --- a/src/Container.php +++ b/src/Container.php @@ -173,6 +173,7 @@ private function createInstance(string $id) * @throws ContainerException If unable to create object. * @psalm-suppress ArgumentTypeCoercion * @psalm-suppress MixedAssignment + * @psalm-suppress UndefinedMethod */ private function createObject(string $className): object {