Skip to content

Commit

Permalink
php 8.1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
srjlewis committed Oct 28, 2021
1 parent 3669624 commit 9861463
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/AbstractExtendedPdo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions tests/ExtendedPdoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9861463

Please sign in to comment.