Skip to content

Commit 15ee27c

Browse files
authored
Merge pull request #2 from likesistemas/feature/psr11
✨ Changing getInstance method return to ContainerInterface
2 parents b74d62f + 7f7a0a4 commit 15ee27c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,8 @@
3232
"fix:ci": "php-cs-fixer fix --dry-run --stop-on-violation",
3333
"test": "phpunit",
3434
"analyse": "phpstan analyse"
35+
},
36+
"provide": {
37+
"psr/container-implementation": "=1.0"
3538
}
3639
}

src/Container.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function has($id) {
2525
/**
2626
* Checks if the included version implements the interface, if it does not return an implemented instance.
2727
*
28-
* @return IlluminateContainer
28+
* @return IlluminateContainer|ContainerInterface
2929
*/
3030
public static function getInstance() {
3131
if (self::isPsr11()) {

0 commit comments

Comments
 (0)