Unverified Commit d9b377cd authored by Marco Pivetta's avatar Marco Pivetta Committed by GitHub

Merge pull request #3667 from morozov/phpstan-fix-backport

Phpstan fix backport
parents 461d4247 6a2bec0c
...@@ -77,5 +77,6 @@ ...@@ -77,5 +77,6 @@
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.IncorrectReturnTypeHint"> <rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.IncorrectReturnTypeHint">
<exclude-pattern>lib/Doctrine/DBAL/Types/ArrayType.php</exclude-pattern> <exclude-pattern>lib/Doctrine/DBAL/Types/ArrayType.php</exclude-pattern>
<exclude-pattern>lib/Doctrine/DBAL/Types/ObjectType.php</exclude-pattern> <exclude-pattern>lib/Doctrine/DBAL/Types/ObjectType.php</exclude-pattern>
<exclude-pattern>tests/Doctrine/Tests/DBAL/Driver/Mysqli/MysqliConnectionTest.php</exclude-pattern>
</rule> </rule>
</ruleset> </ruleset>
...@@ -44,7 +44,7 @@ class MysqliConnectionTest extends DbalFunctionalTestCase ...@@ -44,7 +44,7 @@ class MysqliConnectionTest extends DbalFunctionalTestCase
public function testRestoresErrorHandlerOnException() : void public function testRestoresErrorHandlerOnException() : void
{ {
$handler = static function () : void { $handler = static function () : bool {
self::fail('Never expected this to be called'); self::fail('Never expected this to be called');
}; };
$default_handler = set_error_handler($handler); $default_handler = set_error_handler($handler);
......
...@@ -296,7 +296,7 @@ class ExceptionTest extends DbalFunctionalTestCase ...@@ -296,7 +296,7 @@ class ExceptionTest extends DbalFunctionalTestCase
public function testConnectionExceptionSqLite() : void public function testConnectionExceptionSqLite() : void
{ {
if ($this->connection instanceof SqlitePlatform) { if ($this->connection->getDatabasePlatform() instanceof SqlitePlatform) {
$this->markTestSkipped('Only fails this way on sqlite'); $this->markTestSkipped('Only fails this way on sqlite');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment