Skip to content

Commit fe347a8

Browse files
committed
Switch to psr/container:2.0 (and raise PHP requirement to 8.0)
1 parent ba00e2a commit fe347a8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
runs-on: ubuntu-latest
77
strategy:
88
matrix:
9-
php: [ '7.1', '7.2', '7.3', '7.4', '8.0' ]
9+
php: [ '8.0' ]
1010

1111
steps:
1212
- uses: actions/checkout@master

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"null-object"
1212
],
1313
"require": {
14-
"php": ">=7.1",
15-
"psr/container": "^1.0"
14+
"php": ">=8.0",
15+
"psr/container": "^2.0"
1616
},
1717
"require-dev": {
1818
"peridot-php/peridot": "^1.19"

src/NullContainer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ final class NullContainer implements ContainerInterface
1515
* @param string $id Identifier of the entry to look for.
1616
* @throws ServiceNotFound Always
1717
*/
18-
public function get($id)
18+
public function get(string $id)
1919
{
2020
throw new ServiceNotFound($id);
2121
}
@@ -28,7 +28,7 @@ public function get($id)
2828
* @param string $id
2929
* @return false
3030
*/
31-
public function has($id)
31+
public function has(string $id): bool
3232
{
3333
return false;
3434
}

0 commit comments

Comments
 (0)