We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb08cc7 commit 95ba977Copy full SHA for 95ba977
1 file changed
src/Result.php
@@ -229,10 +229,10 @@ public function numRows() : int | string
229
public function fetchFields() : array
230
{
231
$this->checkIsFree();
232
- $fields = $this->result->fetch_fields();
233
- foreach ($fields as &$field) {
234
- $field = new Field($field);
+ $fields = [];
+ foreach ($this->result->fetch_fields() as $field) {
+ $fields[] = new Field($field);
235
}
236
- return $fields; // @phpstan-ignore-line
+ return $fields;
237
238
0 commit comments