diff --git a/composer.json b/composer.json index 159923d..1b236ce 100644 --- a/composer.json +++ b/composer.json @@ -28,9 +28,9 @@ "require-dev": { "behat/behat": "^3.0", "friendsofphp/php-cs-fixer": "^3.27", - "phpstan/phpstan": "^1.2", + "phpstan/phpstan": "^2.0", "phpunit/phpunit": "^8.0 || ^9.0 || ^10.0 || ^11.0", - "symfony/phpunit-bridge": "^6.3", + "symfony/phpunit-bridge": "^7.2", "symfony/process": "^5.4 || ^6.3 || ^7.0", "symfony/yaml": "^5.4 || ^6.3 || ^7.0" }, diff --git a/phpstan.neon b/phpstan.neon index 4bc85c4..1349e0f 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -2,7 +2,6 @@ parameters: treatPhpDocTypesAsCertain: false excludePaths: - %currentWorkingDirectory%/src/DAMA/DoctrineTestBundle/DependencyInjection/Configuration.php - - %currentWorkingDirectory%/src/DAMA/DoctrineTestBundle/PHPUnit/PHPUnitListener.php - %currentWorkingDirectory%/src/DAMA/DoctrineTestBundle/PHPUnit/PHPUnitExtension.php - %currentWorkingDirectory%/src/DAMA/DoctrineTestBundle/Doctrine/DBAL/StaticDriver.php - %currentWorkingDirectory%/src/DAMA/DoctrineTestBundle/Doctrine/DBAL/StaticConnection.php diff --git a/src/DAMA/DoctrineTestBundle/Doctrine/DBAL/StaticConnectionTrait.php b/src/DAMA/DoctrineTestBundle/Doctrine/DBAL/StaticConnectionTrait.php index a6fc1f2..0c14332 100644 --- a/src/DAMA/DoctrineTestBundle/Doctrine/DBAL/StaticConnectionTrait.php +++ b/src/DAMA/DoctrineTestBundle/Doctrine/DBAL/StaticConnectionTrait.php @@ -7,6 +7,7 @@ /** * @internal + * @phpstan-ignore trait.unused */ trait StaticConnectionTrait { diff --git a/tests/DAMA/DoctrineTestBundle/Doctrine/DBAL/MockDriverTrait.php b/tests/DAMA/DoctrineTestBundle/Doctrine/DBAL/MockDriverTrait.php index c1c03a8..46f314a 100644 --- a/tests/DAMA/DoctrineTestBundle/Doctrine/DBAL/MockDriverTrait.php +++ b/tests/DAMA/DoctrineTestBundle/Doctrine/DBAL/MockDriverTrait.php @@ -8,6 +8,9 @@ use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Schema\AbstractSchemaManager; +/** + * @phpstan-ignore trait.unused + */ trait MockDriverTrait { private $connection; diff --git a/tests/Functional/PhpunitTest.php b/tests/Functional/PhpunitTest.php index f27c3bc..15655bb 100644 --- a/tests/Functional/PhpunitTest.php +++ b/tests/Functional/PhpunitTest.php @@ -144,7 +144,7 @@ public function testSkippedTest(): void public function testSkippedTestDuringSetup(): void { - $this->assertTrue(true); + $this->expectNotToPerformAssertions(); } public function testMarkIncomplete(): void