diff --git a/src/AbstractExtendedPdo.php b/src/AbstractExtendedPdo.php index d47228b..8816232 100644 --- a/src/AbstractExtendedPdo.php +++ b/src/AbstractExtendedPdo.php @@ -663,12 +663,12 @@ public function query(string $query, ?int $fetchMode = null, mixed ...$fetch_mod * * @param int $type A data type hint for the database driver. * - * @return string The quoted value. + * @return string|false The quoted value or false if the driver does not support quoting in this way. * * @see http://php.net/manual/en/pdo.quote.php * */ - public function quote(string|int|array|float|null $value, int $type = self::PARAM_STR): string + public function quote(string|int|array|float|null $value, int $type = self::PARAM_STR): string|false { $this->connect(); @@ -697,7 +697,7 @@ public function quote(string|int|array|float|null $value, int $type = self::PARA */ public function quoteName(string $name): string { - if (strpos($name, '.') === false) { + if (!str_contains($name, '.')) { return $this->quoteSingleName($name); }