Skip to content

Commit

Permalink
fix quote(): string|false
Browse files Browse the repository at this point in the history
  • Loading branch information
Werner Spiegel committed Jan 12, 2022
1 parent 2255698 commit 0f7bff6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AbstractExtendedPdo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 0f7bff6

Please sign in to comment.