diff --git a/quality/php-stan/phpstan-baseline.neon b/quality/php-stan/phpstan-baseline.neon index a97129b..212c150 100644 --- a/quality/php-stan/phpstan-baseline.neon +++ b/quality/php-stan/phpstan-baseline.neon @@ -35,6 +35,11 @@ parameters: count: 1 path: ../../tests/LongitudeOne/Spatial/Tests/ORM/Query/AST/Functions/PostgreSql/SpTransformTest.php + - + message: "#^Instantiated class \\\\Doctrine\\\\DBAL\\\\Platforms\\\\SqlitePlatform not found\\.$#" + count: 1 + path: ../../tests/LongitudeOne/Spatial/Tests/OrmMockTestCase.php + - message: "#^Return type of call to method PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder\\\\:\\:getMock\\(\\) contains unresolvable type\\.$#" count: 1 diff --git a/tests/LongitudeOne/Spatial/Tests/OrmMockTestCase.php b/tests/LongitudeOne/Spatial/Tests/OrmMockTestCase.php index dea122e..fbf4d05 100644 --- a/tests/LongitudeOne/Spatial/Tests/OrmMockTestCase.php +++ b/tests/LongitudeOne/Spatial/Tests/OrmMockTestCase.php @@ -76,7 +76,6 @@ protected function getMockConnection(): Connection static::fail('Test cannot be performed, no SQLite platform found'); } - /** @phpstan-ignore-next-line */ $platform = new $platformClass(); $driver->method('getDatabasePlatform')