Skip to content

Commit c5921c5

Browse files
committed
Allow psr/container 2.0 and Symfony 6
1 parent 2de0e6f commit c5921c5

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

composer.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"require": {
66
"php": "~8.0.0 || ~8.1.0",
77
"phpunit/phpunit": "^9.0",
8-
"psr/container": "^1.0",
8+
"psr/container": "^1.0 || ^2.0",
99
"zalas/injector": "^2.0"
1010
},
1111
"require-dev": {
12-
"symfony/config": "^4.4.12 || ^5.3",
13-
"symfony/dependency-injection": "^4.4.12 || ^5.3",
14-
"symfony/http-kernel": "^4.4.12 || ^5.3",
12+
"symfony/config": "^4.4.12 || ^5.3 || ^6.0",
13+
"symfony/dependency-injection": "^4.4.12 || ^5.3 || ^6.0",
14+
"symfony/http-kernel": "^4.4.12 || ^5.3 || ^6.0",
1515
"zalas/phpunit-globals": "^2.0",
16-
"symfony/framework-bundle": "^4.4.12 || ^5.3",
16+
"symfony/framework-bundle": "^4.4.12 || ^5.3 || ^6.0",
1717
"zalas/phpunit-doubles": "^1.5",
1818
"phpspec/prophecy": "^1.9",
1919
"phpspec/prophecy-phpunit": "^2.0"

tests/TestListener/ServiceInjectorListenerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function get($id)
7272
};
7373
}
7474

75-
public function has($id)
75+
public function has($id): bool
7676
{
7777
return \in_array($id, [Service1::class, 'foo.service2'], true);
7878
}

tests/phar/tests/PharTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function get($id)
3131
};
3232
}
3333

34-
public function has($id)
34+
public function has($id): bool
3535
{
3636
return \in_array($id, ['foo.service'], true);
3737
}

0 commit comments

Comments
 (0)