Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c42fb8f

Browse files
committedMay 15, 2024··
Assert bound values before iterating it
1 parent 880220a commit c42fb8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/Driver/Mysqli/Result.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ public function fetchNumeric(): array|false
100100
return false;
101101
}
102102

103+
assert($this->boundValues !== []);
104+
103105
$values = [];
104106

105107
foreach ($this->boundValues as $v) {
106108
$values[] = $v;
107109
}
108110

109-
assert($values !== []);
110-
111111
return $values;
112112
}
113113

0 commit comments

Comments
 (0)
Please sign in to comment.