diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 3a11021ffa3..482519c1b72 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -77,5 +77,6 @@ lib/Doctrine/DBAL/Types/ArrayType.php lib/Doctrine/DBAL/Types/ObjectType.php + tests/Doctrine/Tests/DBAL/Driver/Mysqli/MysqliConnectionTest.php diff --git a/tests/Doctrine/Tests/DBAL/Driver/Mysqli/MysqliConnectionTest.php b/tests/Doctrine/Tests/DBAL/Driver/Mysqli/MysqliConnectionTest.php index dcfbe715608..37a5ab1a32f 100644 --- a/tests/Doctrine/Tests/DBAL/Driver/Mysqli/MysqliConnectionTest.php +++ b/tests/Doctrine/Tests/DBAL/Driver/Mysqli/MysqliConnectionTest.php @@ -44,7 +44,7 @@ public function testDoesNotRequireQueryForServerVersion() : void public function testRestoresErrorHandlerOnException() : void { - $handler = static function () : void { + $handler = static function () : bool { self::fail('Never expected this to be called'); }; $default_handler = set_error_handler($handler); diff --git a/tests/Doctrine/Tests/DBAL/Functional/ExceptionTest.php b/tests/Doctrine/Tests/DBAL/Functional/ExceptionTest.php index 161a32f1111..0a6c658ea8c 100644 --- a/tests/Doctrine/Tests/DBAL/Functional/ExceptionTest.php +++ b/tests/Doctrine/Tests/DBAL/Functional/ExceptionTest.php @@ -296,7 +296,7 @@ public function testSyntaxErrorException() : void public function testConnectionExceptionSqLite() : void { - if ($this->connection instanceof SqlitePlatform) { + if ($this->connection->getDatabasePlatform() instanceof SqlitePlatform) { $this->markTestSkipped('Only fails this way on sqlite'); }