diff --git a/src/AbstractExtendedPdo.php b/src/AbstractExtendedPdo.php index 84d4dc2f..56b923de 100644 --- a/src/AbstractExtendedPdo.php +++ b/src/AbstractExtendedPdo.php @@ -672,6 +672,8 @@ public function quote(mixed $value, int $type = self::PARAM_STR): string { $this->connect(); + $value = $value ?? ''; + // non-array quoting if (! is_array($value)) { return $this->pdo->quote($value, $type); diff --git a/tests/ExtendedPdoTest.php b/tests/ExtendedPdoTest.php index 2398467b..ec3221ed 100644 --- a/tests/ExtendedPdoTest.php +++ b/tests/ExtendedPdoTest.php @@ -670,6 +670,7 @@ public function testNoExportOfLoginCredentials() protected function dump($pdo) { + ini_set('xdebug.cli_color', 0); ob_start(); var_dump($pdo); $data = ob_get_clean();