Changeset 3455441
- Timestamp:
- 02/06/2026 01:53:51 PM (7 weeks ago)
- File:
-
- 1 edited
-
admin-menu-editor/trunk/includes/module.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
admin-menu-editor/trunk/includes/module.php
r3442103 r3455441 326 326 327 327 public function getIterator(): Traversable { 328 return new ArrayIterator($this->selectedDeps); 328 //PHP < 8.1 compatibility: We use the iterator with a splat operator later, which 329 //doesn't support arrays/Traversable with string keys. So we reindex the array here. 330 return new ArrayIterator(array_values($this->selectedDeps)); 329 331 } 330 332
Note: See TracChangeset
for help on using the changeset viewer.