Skip to content

Commit

Permalink
Add the #[\ReturnTypeWillChange] attribute so that plugin would have …
Browse files Browse the repository at this point in the history
…backwards compatibility but would not show deprecated error with PHP 8.1.
  • Loading branch information
kristjankoppel committed Nov 27, 2023
1 parent c03783d commit f935f04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ProductsIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public function current() {
*
* @since 2.0.0
*/
#[\ReturnTypeWillChange]
public function next() {
/**
* The `loop_end` action is not the only thing we do to improve compatibility. There’s
Expand Down

0 comments on commit f935f04

Please sign in to comment.