@@ -183,6 +183,7 @@ public function getErrors(): array
183
183
* @return boolean true on success or false on failure.
184
184
* The return value will be casted to boolean if non-boolean was returned.
185
185
*/
186
+ #[\ReturnTypeWillChange]
186
187
public function offsetExists ($ offset )
187
188
{
188
189
return $ this ->hasPath ($ offset );
@@ -194,6 +195,7 @@ public function offsetExists($offset)
194
195
* @param mixed $offset The offset to retrieve.
195
196
* @return PathItem Can return all value types.
196
197
*/
198
+ #[\ReturnTypeWillChange]
197
199
public function offsetGet ($ offset )
198
200
{
199
201
return $ this ->getPath ($ offset );
@@ -205,6 +207,7 @@ public function offsetGet($offset)
205
207
* @param mixed $offset The offset to assign the value to.
206
208
* @param mixed $value The value to set.
207
209
*/
210
+ #[\ReturnTypeWillChange]
208
211
public function offsetSet ($ offset , $ value )
209
212
{
210
213
$ this ->addPath ($ offset , $ value );
@@ -215,6 +218,7 @@ public function offsetSet($offset, $value)
215
218
* @link http://php.net/manual/en/arrayaccess.offsetunset.php
216
219
* @param mixed $offset The offset to unset.
217
220
*/
221
+ #[\ReturnTypeWillChange]
218
222
public function offsetUnset ($ offset )
219
223
{
220
224
$ this ->removePath ($ offset );
@@ -226,6 +230,7 @@ public function offsetUnset($offset)
226
230
* @return int The custom count as an integer.
227
231
* The return value is cast to an integer.
228
232
*/
233
+ #[\ReturnTypeWillChange]
229
234
public function count ()
230
235
{
231
236
return count ($ this ->_paths );
@@ -236,6 +241,7 @@ public function count()
236
241
* @link http://php.net/manual/en/iteratoraggregate.getiterator.php
237
242
* @return Traversable An instance of an object implementing <b>Iterator</b> or <b>Traversable</b>
238
243
*/
244
+ #[\ReturnTypeWillChange]
239
245
public function getIterator ()
240
246
{
241
247
return new ArrayIterator ($ this ->_paths );
0 commit comments