From f935f0405b2818fb80f861cb13e670193035a050 Mon Sep 17 00:00:00 2001 From: Kristjan Koppel Date: Mon, 27 Nov 2023 21:58:15 +0200 Subject: [PATCH] Add the #[\ReturnTypeWillChange] attribute so that plugin would have backwards compatibility but would not show deprecated error with PHP 8.1. --- lib/ProductsIterator.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ProductsIterator.php b/lib/ProductsIterator.php index 57a4524..c14802e 100644 --- a/lib/ProductsIterator.php +++ b/lib/ProductsIterator.php @@ -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