diff --git a/core/src/Support/Formatter/SqlFormatter.php b/core/src/Support/Formatter/SqlFormatter.php index e17c2bfdb5..3f6cb2cb57 100644 --- a/core/src/Support/Formatter/SqlFormatter.php +++ b/core/src/Support/Formatter/SqlFormatter.php @@ -1693,7 +1693,7 @@ private static function is_cli() * @param \PDO $pdo * @return string */ - public static function prepare($sql, array $bindings = [], PDO $pdo = null) + public static function prepare($sql, array $bindings = [], PDO|string $pdo = null) { // insert new lines $sql = " $sql ";