Skip to content

Commit 3a1d744

Browse files
committed
Fix NS & PHPStan at old PHP versions
1 parent 22c4479 commit 3a1d744

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

phpstan.neon

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ parameters:
5050
- src/Doctrine/Driver/DriverType.php
5151

5252
-
53-
messages: # needed for older DBAL versions (fails only on PHP 7.3)
53+
messages: # needed for older DBAL versions
54+
- '#^Class PgSql\\Connection not found\.$#'
5455
- '#^Class Doctrine\\DBAL\\Driver\\PgSQL\\Driver not found\.$#'
5556
- '#^Class Doctrine\\DBAL\\Driver\\SQLite3\\Driver not found\.$#'
5657

tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
use PHPStan\Type\VerbosityLevel;
4747
use PHPUnit\Framework\Constraint\IsEqual;
4848
use PHPUnit\Framework\Constraint\IsIdentical;
49-
use Platform\TypedExpressionStringPiFunction;
5049
use Psr\Log\LoggerInterface;
5150
use Throwable;
5251
use function class_exists;

tests/Platform/TypedExpressionStringPiFunction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php declare(strict_types = 1);
22

3-
namespace Platform;
3+
namespace PHPStan\Platform;
44

55
use Doctrine\DBAL\Types\Type;
66
use Doctrine\DBAL\Types\Types;

0 commit comments

Comments
 (0)