From f2f279740de7a62166e658b4080ff01b6df0229f Mon Sep 17 00:00:00 2001 From: Ciki Date: Wed, 21 Jan 2026 16:32:05 +0100 Subject: [PATCH] cast $this to array as an argument for ArrayIterator constructor Prior to this change that line of code throws Deprecated ArrayIterator::__construct(): Using an object as a backing array for ArrayIterator is deprecated, as it allows violating class constraints and invariants --- src/Dibi/Row.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dibi/Row.php b/src/Dibi/Row.php index 9ab26fde..e2b12095 100644 --- a/src/Dibi/Row.php +++ b/src/Dibi/Row.php @@ -75,7 +75,7 @@ final public function count(): int final public function getIterator(): \ArrayIterator { - return new \ArrayIterator($this); + return new \ArrayIterator($this->toArray()); }