Browse Source

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)
Alexandre Alapetite 4 years ago
parent
commit
3502e50cb2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/Minz/Pdo.php

+ 2 - 2
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);
 	}