File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 12
12
}
13
13
],
14
14
"require" : {
15
- "php" : " >=5.3 .0"
15
+ "php" : " >=7.2 .0"
16
16
},
17
17
"autoload" : {
18
18
"psr-4" : {
21
21
},
22
22
"extra" : {
23
23
"branch-alias" : {
24
- "dev-master" : " 1.0 .x-dev"
24
+ "dev-master" : " 1.1 .x-dev"
25
25
}
26
26
}
27
27
}
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ declare (strict_types=1 );
4
+
3
5
namespace Psr \Container ;
4
6
5
7
/**
@@ -17,7 +19,7 @@ interface ContainerInterface
17
19
*
18
20
* @return mixed Entry.
19
21
*/
20
- public function get ($ id );
22
+ public function get (string $ id );
21
23
22
24
/**
23
25
* 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
32
34
*/
33
- public function has ($ id );
35
+ public function has (string $ id );
34
36
}
You can’t perform that action at this time.
0 commit comments