Skip to content

Commit 360efcf

Browse files
authored
Merge pull request #35 from hannesvdvreken/master
Allow psr container v2
2 parents 5a46b9d + 53efe55 commit 360efcf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"require": {
1919
"php": ">=7.3",
20-
"psr/container": "~1.0"
20+
"psr/container": "^1.0|^2.0"
2121
},
2222
"require-dev": {
2323
"phpunit/phpunit": "^9.0",

tests/Mock/ArrayContainer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function get($id)
2727
}
2828

2929
/** {@inheritDoc} */
30-
public function has($id)
30+
public function has($id): bool
3131
{
3232
return array_key_exists($id, $this->entries);
3333
}

0 commit comments

Comments
 (0)