@@ -281,10 +281,10 @@ function setProperty($index, $value, $persistChanges = true)
281281
282282
283283 /**
284- * @return Generator| Traversable
284+ * @return Traversable
285285 * @throws Exception
286286 */
287- public function getIterator ()
287+ public function getIterator (): Traversable
288288 {
289289 /** @var ClientObject $item */
290290 foreach ($ this ->data as $ index => $ item ) {
@@ -321,11 +321,12 @@ private function getNextItems(){
321321 * @return boolean
322322 * @abstracting ArrayAccess
323323 */
324- public function offsetExists ($ offset )
324+ public function offsetExists ($ offset ): bool
325325 {
326326 return isset ($ this ->data [$ offset ]);
327327 }
328328
329+ #[\ReturnTypeWillChange]
329330 /**
330331 * Returns the value at specified offset
331332 *
@@ -348,7 +349,7 @@ public function offsetGet($offset)
348349 * @access public
349350 * @abstracting ArrayAccess
350351 */
351- public function offsetSet ($ offset , $ value )
352+ public function offsetSet ($ offset , $ value ): void
352353 {
353354 if (is_null ($ offset )) {
354355 $ this ->data [] = $ value ;
@@ -364,7 +365,7 @@ public function offsetSet($offset, $value)
364365 * @access public
365366 * @abstracting ArrayAccess
366367 */
367- public function offsetUnset ($ offset )
368+ public function offsetUnset ($ offset ): void
368369 {
369370 if ($ this ->offsetExists ($ offset )) {
370371 unset($ this ->data [$ offset ]);
0 commit comments