@@ -50,6 +50,7 @@ public function count(): int
5050 * Method returning the current element
5151 * @return mixed
5252 */
53+ #[\ReturnTypeWillChange]
5354 public function current ()
5455 {
5556 $ this ->initInternArray ();
@@ -61,6 +62,7 @@ public function current()
6162 * Method moving the current position to the next element
6263 * @return AbstractStructArrayBase
6364 */
65+ #[\ReturnTypeWillChange]
6466 public function next (): self
6567 {
6668 $ this ->initInternArray ();
@@ -72,6 +74,7 @@ public function next(): self
7274 * Method resetting itemOffset
7375 * @return AbstractStructArrayBase
7476 */
77+ #[\ReturnTypeWillChange]
7578 public function rewind (): self
7679 {
7780 $ this ->initInternArray ();
@@ -129,10 +132,10 @@ public function add($item): self
129132 $ currentArray = $ this ->getPropertyValue ($ this ->getAttributeName ());
130133 $ currentArray [] = $ item ;
131134 $ this
132- ->setPropertyValue ($ this ->getAttributeName (), $ currentArray )
133135 ->setInternArray ($ currentArray )
134136 ->setInternArrayIsArray (true )
135- ->setInternArrayOffset (0 );
137+ ->setInternArrayOffset (0 )
138+ ->setPropertyValue ($ this ->getAttributeName (), $ currentArray );
136139
137140 return $ this ;
138141 }
@@ -176,6 +179,7 @@ public function offsetExists($offset): bool
176179 * @param mixed $offset
177180 * @return mixed
178181 */
182+ #[\ReturnTypeWillChange]
179183 public function offsetGet ($ offset )
180184 {
181185 $ this ->initInternArray ();
@@ -189,20 +193,24 @@ public function offsetGet($offset)
189193 * @param mixed $value
190194 * @return AbstractStructArrayBase
191195 */
196+ #[\ReturnTypeWillChange]
192197 public function offsetSet ($ offset , $ value ): self
193198 {
194199 $ this ->initInternArray ();
195200
196201 $ this ->internArray [$ offset ] = $ value ;
197202
198- return $ this ->setPropertyValue ($ this ->getAttributeName (), $ this ->internArray );
203+ $ this ->setPropertyValue ($ this ->getAttributeName (), $ this ->internArray );
204+
205+ return $ this ;
199206 }
200207
201208 /**
202209 * Method unsetting value at offset
203210 * @param mixed $offset
204211 * @return AbstractStructArrayBase
205212 */
213+ #[\ReturnTypeWillChange]
206214 public function offsetUnset ($ offset ): self
207215 {
208216 $ this ->initInternArray ();
0 commit comments