Skip to content

Commit edb2a69

Browse files
committed
PHP 8 compat
1 parent f881c9f commit edb2a69

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

api.include.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6387,7 +6387,7 @@ public function lastInsertId(/* ?string */$name = null): string
63876387
return $this->pdo()->lastInsertId($name);
63886388
}
63896389

6390-
public function query(string $query, int $fetchMode = null, mixed ...$fetchModeArgs): \PDOStatement
6390+
public function query($query, /* ?int */$fetchMode = null, ...$fetchModeArgs): \PDOStatement
63916391
{
63926392
return call_user_func_array(array($this->pdo(), 'query'), func_get_args());
63936393
}

api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6387,7 +6387,7 @@ public function lastInsertId(/* ?string */$name = null): string
63876387
return $this->pdo()->lastInsertId($name);
63886388
}
63896389

6390-
public function query(string $query, int $fetchMode = null, mixed ...$fetchModeArgs): \PDOStatement
6390+
public function query($query, /* ?int */$fetchMode = null, ...$fetchModeArgs): \PDOStatement
63916391
{
63926392
return call_user_func_array(array($this->pdo(), 'query'), func_get_args());
63936393
}

src/Tqdev/PhpCrudApi/Database/LazyPdo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function lastInsertId(/* ?string */$name = null): string
117117
return $this->pdo()->lastInsertId($name);
118118
}
119119

120-
public function query(string $query, int $fetchMode = null, mixed ...$fetchModeArgs): \PDOStatement
120+
public function query($query, /* ?int */$fetchMode = null, ...$fetchModeArgs): \PDOStatement
121121
{
122122
return call_user_func_array(array($this->pdo(), 'query'), func_get_args());
123123
}

0 commit comments

Comments
 (0)