Skip to content

Commit d9b377c

Browse files
authored
Merge pull request #3667 from morozov/phpstan-fix-backport
Phpstan fix backport
2 parents 461d424 + 6a2bec0 commit d9b377c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

phpcs.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,6 @@
7777
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.IncorrectReturnTypeHint">
7878
<exclude-pattern>lib/Doctrine/DBAL/Types/ArrayType.php</exclude-pattern>
7979
<exclude-pattern>lib/Doctrine/DBAL/Types/ObjectType.php</exclude-pattern>
80+
<exclude-pattern>tests/Doctrine/Tests/DBAL/Driver/Mysqli/MysqliConnectionTest.php</exclude-pattern>
8081
</rule>
8182
</ruleset>

tests/Doctrine/Tests/DBAL/Driver/Mysqli/MysqliConnectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testDoesNotRequireQueryForServerVersion() : void
4444

4545
public function testRestoresErrorHandlerOnException() : void
4646
{
47-
$handler = static function () : void {
47+
$handler = static function () : bool {
4848
self::fail('Never expected this to be called');
4949
};
5050
$default_handler = set_error_handler($handler);

tests/Doctrine/Tests/DBAL/Functional/ExceptionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public function testSyntaxErrorException() : void
296296

297297
public function testConnectionExceptionSqLite() : void
298298
{
299-
if ($this->connection instanceof SqlitePlatform) {
299+
if ($this->connection->getDatabasePlatform() instanceof SqlitePlatform) {
300300
$this->markTestSkipped('Only fails this way on sqlite');
301301
}
302302

0 commit comments

Comments
 (0)