Skip to content

Commit 244a552

Browse files
committed
Method 'Class::next()' is not compatible with method 'Iterator::next()'.
1 parent 9a1b9b1 commit 244a552

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WP_Hook.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,9 @@ public function current(): mixed
464464
* @return array Of callbacks at next priority.
465465
*/
466466
#[\ReturnTypeWillChange]
467-
public function next()
467+
public function next(): void
468468
{
469-
return next($this->callbacks);
469+
next($this->callbacks);
470470
}
471471

472472
/**

0 commit comments

Comments
 (0)