Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type annotations in test classes #19

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion phpstan.neon → phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
parameters:
level: 9
paths:
- src
- src
- tests
4 changes: 2 additions & 2 deletions tests/Integration/DoctrineEventStoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check failure on line 8 in tests/Integration/DoctrineEventStoreTest.php

View workflow job for this annotation

GitHub Actions / build (8.1)

No error to ignore is reported on line 8.

Check failure on line 8 in tests/Integration/DoctrineEventStoreTest.php

View workflow job for this annotation

GitHub Actions / build (8.2)

No error to ignore is reported on line 8.

Check failure on line 8 in tests/Integration/DoctrineEventStoreTest.php

View workflow job for this annotation

GitHub Actions / build (8.3)

No error to ignore is reported on line 8.
use Doctrine\DBAL\Platforms\SqlitePlatform;
use Neos\EventStore\DoctrineAdapter\DoctrineEventStore;
use Neos\EventStore\EventStoreInterface;
Expand All @@ -32,7 +32,7 @@
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

Check failure on line 35 in tests/Integration/DoctrineEventStoreTest.php

View workflow job for this annotation

GitHub Actions / build (8.1)

No error to ignore is reported on line 35.

Check failure on line 35 in tests/Integration/DoctrineEventStoreTest.php

View workflow job for this annotation

GitHub Actions / build (8.2)

No error to ignore is reported on line 35.

Check failure on line 35 in tests/Integration/DoctrineEventStoreTest.php

View workflow job for this annotation

GitHub Actions / build (8.3)

No error to ignore is reported on line 35.
$connection->executeStatement('TRUNCATE TABLE ' . self::eventTableName() . ' RESTART IDENTITY');
} else {
$connection->executeStatement('TRUNCATE TABLE ' . self::eventTableName());
Expand Down
Loading