diff options
| author | 2022-01-09 19:02:12 +0100 | |
|---|---|---|
| committer | 2022-01-09 19:02:12 +0100 | |
| commit | 3502e50cb24177f06900389f10d265529a24fd58 (patch) | |
| tree | 4cdddc6ce2a618c67b074761f84f0ceff7e128a1 /lib | |
| parent | 4e2dff4591bb2062311c1d5bfcdca3ade2a76d16 (diff) | |
Fix PHP 7.4 signature warnings (#4140)
Revert some type hints creating warnings in PHP 7.4 (not in PHP 7.0 nor PHP 8.1)
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Minz/Pdo.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Minz/Pdo.php b/lib/Minz/Pdo.php index 9dcf0e5fa..8c9cd9076 100644 --- a/lib/Minz/Pdo.php +++ b/lib/Minz/Pdo.php @@ -43,14 +43,14 @@ abstract class Minz_Pdo extends PDO { // PHP8+: PDO::prepare(string $query, array $options = []): PDOStatement|false #[\ReturnTypeWillChange] - public function prepare(string $statement, array $driver_options = []) { + public function prepare($statement, $driver_options = []) { $statement = $this->preSql($statement); return parent::prepare($statement, $driver_options); } // PHP8+: PDO::exec(string $statement): int|false #[\ReturnTypeWillChange] - public function exec(string $statement) { + public function exec($statement) { $statement = $this->preSql($statement); return parent::exec($statement); } |
