File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public function __construct(array $factories)
43
43
*
44
44
* @return bool
45
45
*/
46
- public function has ($ id )
46
+ public function has (string $ id )
47
47
{
48
48
return isset ($ this ->factories [$ id ]);
49
49
}
@@ -53,7 +53,7 @@ public function has($id)
53
53
*
54
54
* @return mixed
55
55
*/
56
- public function get ($ id )
56
+ public function get (string $ id )
57
57
{
58
58
if (!isset ($ this ->factories [$ id ])) {
59
59
throw $ this ->createNotFoundException ($ id );
Original file line number Diff line number Diff line change 17
17
],
18
18
"require" : {
19
19
"php" : " >=7.2.5" ,
20
- "psr/container" : " ^1.0 "
20
+ "psr/container" : " ^1.1 "
21
21
},
22
22
"suggest" : {
23
23
"symfony/service-implementation" : " "
Original file line number Diff line number Diff line change 18
18
"require" : {
19
19
"php" : " >=7.2.5" ,
20
20
"psr/cache" : " ^1.0|^2.0|^3.0" ,
21
- "psr/container" : " ^1.0 " ,
21
+ "psr/container" : " ^1.1 " ,
22
22
"psr/event-dispatcher" : " ^1.0"
23
23
},
24
24
"require-dev" : {
You can’t perform that action at this time.
0 commit comments