Skip to content

Commit 5df5097

Browse files
committed
[DependencyInjection] Implement psr/container 1.1
1 parent 39b4df3 commit 5df5097

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Service/ServiceLocatorTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(array $factories)
4343
*
4444
* @return bool
4545
*/
46-
public function has($id)
46+
public function has(string $id)
4747
{
4848
return isset($this->factories[$id]);
4949
}
@@ -53,7 +53,7 @@ public function has($id)
5353
*
5454
* @return mixed
5555
*/
56-
public function get($id)
56+
public function get(string $id)
5757
{
5858
if (!isset($this->factories[$id])) {
5959
throw $this->createNotFoundException($id);

Service/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"require": {
1919
"php": ">=7.2.5",
20-
"psr/container": "^1.0"
20+
"psr/container": "^1.1"
2121
},
2222
"suggest": {
2323
"symfony/service-implementation": ""

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"require": {
1919
"php": ">=7.2.5",
2020
"psr/cache": "^1.0|^2.0|^3.0",
21-
"psr/container": "^1.0",
21+
"psr/container": "^1.1",
2222
"psr/event-dispatcher": "^1.0"
2323
},
2424
"require-dev": {

0 commit comments

Comments
 (0)