diff --git a/src/Drivers/Mysqli/MysqliDriver.php b/src/Drivers/Mysqli/MysqliDriver.php index fde6f14..c7fdcca 100644 --- a/src/Drivers/Mysqli/MysqliDriver.php +++ b/src/Drivers/Mysqli/MysqliDriver.php @@ -177,7 +177,7 @@ public function getAffectedRows(): int { assert($this->connection !== null); $affectedRows = $this->connection->affected_rows; - if (is_string($affectedRows)) { + if (is_string($affectedRows)) { // @phpstan-ignore-line // Integer overflow, read the real value via IConnection::getDriver()::getResourceHandle()->affected_rows return -2; } diff --git a/src/Drivers/Mysqli/MysqliResultAdapter.php b/src/Drivers/Mysqli/MysqliResultAdapter.php index 2693c3c..5ee041e 100644 --- a/src/Drivers/Mysqli/MysqliResultAdapter.php +++ b/src/Drivers/Mysqli/MysqliResultAdapter.php @@ -84,7 +84,7 @@ public function getTypes(): array public function getRowsCount(): int { $rows = $this->result->num_rows; - if (is_string($rows)) { + if (is_string($rows)) { // @phpstan-ignore-line throw new InvalidStateException("Query returned more rows that Integer can store."); } return $rows;