We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 836cfaa commit 893b6e6Copy full SHA for 893b6e6
src/Resultset.php
@@ -57,11 +57,7 @@ public function __construct(Statement $statement)
57
$this->int_ptr = 0;
58
} elseif ($this->query->isCount()) {
59
$value = $statement->fetch();
60
- if ($value === false ) {
61
- $this->max_ptr = 0;
62
- } else {
63
- $this->max_ptr = $value['num_col'];
64
- }
+ $this->max_ptr = $value['num_col'] ?? 0;
65
}
66
67
} catch (\Exception $e) {
0 commit comments