diff --git a/phpstan.neon b/phpstan.neon.dist similarity index 60% rename from phpstan.neon rename to phpstan.neon.dist index 484be13..d461cdd 100644 --- a/phpstan.neon +++ b/phpstan.neon.dist @@ -1,4 +1,5 @@ parameters: level: 9 paths: - - src \ No newline at end of file + - src + - tests \ No newline at end of file diff --git a/tests/Integration/DoctrineEventStoreTest.php b/tests/Integration/DoctrineEventStoreTest.php index 973e53a..0e711c0 100644 --- a/tests/Integration/DoctrineEventStoreTest.php +++ b/tests/Integration/DoctrineEventStoreTest.php @@ -5,7 +5,7 @@ use Doctrine\DBAL\Connection; use Doctrine\DBAL\DriverManager; use Doctrine\DBAL\Exception as DbalException; -use Doctrine\DBAL\Platforms\PostgreSQLPlatform; +use Doctrine\DBAL\Platforms\PostgreSQLPlatform; // @phpstan-ignore-line use Doctrine\DBAL\Platforms\SqlitePlatform; use Neos\EventStore\DoctrineAdapter\DoctrineEventStore; use Neos\EventStore\EventStoreInterface; @@ -32,7 +32,7 @@ protected static function resetEventStore(): void if ($connection->getDatabasePlatform() instanceof SqlitePlatform) { $connection->executeStatement('DELETE FROM ' . self::eventTableName()); $connection->executeStatement('UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME="' . self::eventTableName() . '"'); - } elseif ($connection->getDatabasePlatform() instanceof PostgreSQLPlatform) { + } elseif ($connection->getDatabasePlatform() instanceof PostgreSQLPlatform) { // @phpstan-ignore-line $connection->executeStatement('TRUNCATE TABLE ' . self::eventTableName() . ' RESTART IDENTITY'); } else { $connection->executeStatement('TRUNCATE TABLE ' . self::eventTableName());