File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed
Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change 1515
1616class Collection implements Countable, IteratorAggregate
1717{
18- /**
19- * @var array
20- */
21- protected $ values = [];
18+ protected array $ values = [];
2219
2320 public function all (): array
2421 {
2522 return $ this ->values ;
2623 }
2724
28- /**
29- * @return mixed
30- */
31- public function get (string $ name )
25+ public function get (string $ name ): mixed
3226 {
3327 if ($ this ->has ($ name )) {
3428 return $ this ->values [$ name ];
@@ -42,10 +36,7 @@ public function has(string $name): bool
4236 return array_key_exists ($ name , $ this ->values );
4337 }
4438
45- /**
46- * @param mixed $object
47- */
48- public function set (string $ name , $ object )
39+ public function set (string $ name , mixed $ object )
4940 {
5041 $ this ->values [$ name ] = $ object ;
5142 }
You can’t perform that action at this time.
0 commit comments