Skip to content

Commit 8fd121e

Browse files
committed
Remove workaround to provide 8.1 support in PDOStatementStub
1 parent 7022e70 commit 8fd121e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

test/unit/Mutex/BasicPDOStatementStub.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,6 @@ public function __construct(array $result) { $this->result = $result; }
4040

4141
public function fetchAll(?int $fetch_style = NULL, mixed ...$fetch_argument): array
4242
{
43-
if (PHP_VERSION_ID < 80100) {
44-
// Before 8.1, ints and floats were returned as strings
45-
// https://www.php.net/manual/en/migration81.incompatible.php#migration81.incompatible.pdo.mysql
46-
$this->result = array_map(
47-
fn($row) => array_map(
48-
fn($column) => (is_int($column) || \is_float($column)) ? (string) $column : $column,
49-
$row
50-
),
51-
$this->result
52-
);
53-
}
54-
5543
if ($fetch_style === NULL) {
5644
return $this->result;
5745
} elseif ($fetch_style === PDO::FETCH_COLUMN) {

0 commit comments

Comments
 (0)