We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b1fbdff + 2a09c4c commit 381524eCopy full SHA for 381524e
2 files changed
composer.json
@@ -12,7 +12,7 @@
12
}
13
],
14
"require": {
15
- "php": ">=5.3.0"
+ "php": ">=7.2.0"
16
},
17
"autoload": {
18
"psr-4": {
@@ -21,7 +21,7 @@
21
22
"extra": {
23
"branch-alias": {
24
- "dev-master": "1.0.x-dev"
+ "dev-master": "1.1.x-dev"
25
26
27
src/ContainerInterface.php
@@ -1,5 +1,7 @@
1
<?php
2
3
+declare(strict_types=1);
4
+
5
namespace Psr\Container;
6
7
/**
@@ -17,7 +19,7 @@ interface ContainerInterface
19
*
20
* @return mixed Entry.
*/
- public function get($id);
+ public function get(string $id);
* Returns true if the container can return an entry for the given identifier.
@@ -30,5 +32,5 @@ public function get($id);
30
32
31
33
* @return bool
34
- public function has($id);
35
+ public function has(string $id);
36
0 commit comments