Skip to content

Commit

Permalink
adds support for psr/container ^2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
filecage committed Mar 9, 2023
1 parent 146b770 commit 4f280e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion lib/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4f280e9

Please sign in to comment.