Skip to content

Commit

Permalink
Merge pull request #3667 from morozov/phpstan-fix-backport
Browse files Browse the repository at this point in the history
Phpstan fix backport
  • Loading branch information
Ocramius authored Aug 29, 2019
2 parents 461d424 + 6a2bec0 commit d9b377c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,6 @@
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.IncorrectReturnTypeHint">
<exclude-pattern>lib/Doctrine/DBAL/Types/ArrayType.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>
</ruleset>
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/Doctrine/Tests/DBAL/Functional/ExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit d9b377c

Please sign in to comment.