Skip to content

Commit bd7a519

Browse files
[9.x] Support the latest psr/container versions (#38692)
* Support the latest psr/container versions * Added types
1 parent a3cd40a commit bd7a519

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"monolog/monolog": "^2.0",
2727
"nesbot/carbon": "^2.31",
2828
"opis/closure": "^3.6",
29-
"psr/container": "^1.0",
29+
"psr/container": "^1.1.1|^2.0.1",
3030
"psr/simple-cache": "^1.0",
3131
"ramsey/uuid": "^4.0",
3232
"swiftmailer/swiftmailer": "^6.2.7",

src/Illuminate/Container/Container.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function bound($abstract)
189189
/**
190190
* {@inheritdoc}
191191
*/
192-
public function has($id)
192+
public function has(string $id): bool
193193
{
194194
return $this->bound($id);
195195
}
@@ -695,7 +695,7 @@ public function make($abstract, array $parameters = [])
695695
/**
696696
* {@inheritdoc}
697697
*/
698-
public function get($id)
698+
public function get(string $id)
699699
{
700700
try {
701701
return $this->resolve($id);

src/Illuminate/Container/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"require": {
1717
"php": "^8.0.2",
1818
"illuminate/contracts": "^9.0",
19-
"psr/container": "^1.0"
19+
"psr/container": "^1.1.1|^2.0.1"
2020
},
2121
"provide": {
2222
"psr/container-implementation": "1.0"

src/Illuminate/Contracts/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"require": {
1717
"php": "^8.0.2",
18-
"psr/container": "^1.0",
18+
"psr/container": "^1.1.1|^2.0.1",
1919
"psr/simple-cache": "^1.0"
2020
},
2121
"autoload": {

0 commit comments

Comments
 (0)