From 4f280e9efe4149834e987c7249e76aafb0546df5 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 9 Mar 2023 14:31:03 +0100 Subject: [PATCH] adds support for psr/container ^2.0 --- composer.json | 2 +- lib/Container.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index ead160d..a1c836d 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "require": { "php": ">=7.2", "tholabs/creator-interfaces": "^1.1", - "psr/container": "^1.0" + "psr/container": "^1.0 || ^2.0" }, "require-dev": { "phpunit/phpunit": "^8.5.21" diff --git a/lib/Container.php b/lib/Container.php index 2b59616..b60ddc7 100644 --- a/lib/Container.php +++ b/lib/Container.php @@ -51,7 +51,7 @@ function get ($identifier) { * @return bool * @throws \ReflectionException */ - function has ($identifier) { + function has ($identifier) : bool { if ($this->resourceRegistry->hasPrimitiveResource($identifier)) { return true; }