@@ -11,7 +11,7 @@ class Collection extends Model implements \Iterator, \Countable
1111{
1212 protected $ collection_key = 'items ' ;
1313
14- #[ReturnTypeWillChange]
14+ #[\ ReturnTypeWillChange]
1515 public function rewind ()
1616 {
1717 if (isset ($ this ->{$ this ->collection_key })
@@ -20,7 +20,7 @@ public function rewind()
2020 }
2121 }
2222
23- #[ReturnTypeWillChange]
23+ #[\ ReturnTypeWillChange]
2424 public function current ()
2525 {
2626 $ this ->coerceType ($ this ->key ());
@@ -29,7 +29,7 @@ public function current()
2929 }
3030 }
3131
32- #[ReturnTypeWillChange]
32+ #[\ ReturnTypeWillChange]
3333 public function key ()
3434 {
3535 if (isset ($ this ->{$ this ->collection_key })
@@ -38,20 +38,20 @@ public function key()
3838 }
3939 }
4040
41- #[ReturnTypeWillChange]
41+ #[\ ReturnTypeWillChange]
4242 public function next ()
4343 {
4444 return next ($ this ->{$ this ->collection_key });
4545 }
4646
47- #[ReturnTypeWillChange]
47+ #[\ ReturnTypeWillChange]
4848 public function valid ()
4949 {
5050 $ key = $ this ->key ();
5151 return $ key !== null && $ key !== false ;
5252 }
5353
54- #[ReturnTypeWillChange]
54+ #[\ ReturnTypeWillChange]
5555 public function count ()
5656 {
5757 if (!isset ($ this ->{$ this ->collection_key })) {
@@ -60,7 +60,6 @@ public function count()
6060 return count ($ this ->{$ this ->collection_key });
6161 }
6262
63- #[ReturnTypeWillChange]
6463 public function offsetExists ($ offset )
6564 {
6665 if (!is_numeric ($ offset )) {
@@ -69,7 +68,6 @@ public function offsetExists($offset)
6968 return isset ($ this ->{$ this ->collection_key }[$ offset ]);
7069 }
7170
72- #[ReturnTypeWillChange]
7371 public function offsetGet ($ offset )
7472 {
7573 if (!is_numeric ($ offset )) {
@@ -79,7 +77,6 @@ public function offsetGet($offset)
7977 return $ this ->{$ this ->collection_key }[$ offset ];
8078 }
8179
82- #[ReturnTypeWillChange]
8380 public function offsetSet ($ offset , $ value )
8481 {
8582 if (!is_numeric ($ offset )) {
@@ -88,7 +85,6 @@ public function offsetSet($offset, $value)
8885 $ this ->{$ this ->collection_key }[$ offset ] = $ value ;
8986 }
9087
91- #[ReturnTypeWillChange]
9288 public function offsetUnset ($ offset )
9389 {
9490 if (!is_numeric ($ offset )) {
0 commit comments