Skip to content

Commit

Permalink
Update the psr/container versions from ^1.0 to ^1.0|^2.0 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
devanych authored Dec 20, 2022
1 parent 0bd1caf commit 84a20a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions src/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 84a20a7

Please sign in to comment.