File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 10
10
namespace loophp \phptree \Node ;
11
11
12
12
use InvalidArgumentException ;
13
+ use ReturnTypeWillChange ;
13
14
use Traversable ;
14
15
15
16
use function array_key_exists ;
@@ -133,9 +134,9 @@ public function getAncestors(): Traversable
133
134
}
134
135
135
136
/**
136
- * @return Traversable<\loophp\phptree\Node\ NodeInterface>
137
+ * @return Traversable<NodeInterface>
137
138
*/
138
- public function getIterator ()
139
+ public function getIterator (): Traversable
139
140
{
140
141
yield from $ this ->all ();
141
142
}
@@ -204,6 +205,7 @@ public function level(int $level): Traversable
204
205
*
205
206
* @return bool
206
207
*/
208
+ #[ReturnTypeWillChange]
207
209
public function offsetExists ($ offset )
208
210
{
209
211
return array_key_exists ($ offset , $ this ->children );
@@ -214,6 +216,7 @@ public function offsetExists($offset)
214
216
*
215
217
* @return NodeInterface
216
218
*/
219
+ #[ReturnTypeWillChange]
217
220
public function offsetGet ($ offset )
218
221
{
219
222
return $ this ->children [$ offset ];
@@ -239,6 +242,7 @@ public function offsetSet($offset, $value): void
239
242
*
240
243
* @return void
241
244
*/
245
+ #[ReturnTypeWillChange]
242
246
public function offsetUnset ($ offset )
243
247
{
244
248
unset($ this ->children [$ offset ]);
You can’t perform that action at this time.
0 commit comments