File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -33,24 +33,26 @@ public function __construct(array $config = [])
33
33
}
34
34
}
35
35
36
- public function offsetExists ($ offset )
36
+ public function offsetExists (mixed $ offset ): bool
37
37
{
38
38
return isset ($ this ->config [$ offset ]);
39
39
}
40
40
41
- public function offsetGet ($ offset )
41
+ public function offsetGet (mixed $ offset ): mixed
42
42
{
43
43
if ($ this ->offsetExists ($ offset )) {
44
44
return $ this ->config [$ offset ];
45
45
}
46
+
47
+ return null ;
46
48
}
47
49
48
- public function offsetSet ($ offset , $ value )
50
+ public function offsetSet (mixed $ offset , mixed $ value ): void
49
51
{
50
52
$ this ->config [$ offset ] = $ value ;
51
53
}
52
54
53
- public function offsetUnset ($ offset )
55
+ public function offsetUnset (mixed $ offset ): void
54
56
{
55
57
unset($ this ->config [$ offset ]);
56
58
}
You can’t perform that action at this time.
0 commit comments