Skip to content

Commit

Permalink
enable builds for PHP 8.1
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/build.yml
  • Loading branch information
hrach committed Sep 28, 2021
1 parent 4b12816 commit 81fa5fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Drivers/Mysqli/MysqliDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
use Nextras\Dbal\Utils\LoggerHelper;
use Nextras\Dbal\Utils\StrictObjectTrait;
use function assert;
use function mysqli_report;


/**
Expand Down Expand Up @@ -91,6 +92,7 @@ public function connect(array $params, ILogger $logger): void
$socket = $params['unix_socket'] ?? ini_get('mysqli.default_socket');
$flags = $params['flags'] ?? 0;

mysqli_report(MYSQLI_REPORT_OFF); // Errors are checked explicitly.
$this->connection = new mysqli();

$this->setupSsl($params);
Expand Down

0 comments on commit 81fa5fe

Please sign in to comment.