Skip to content

Commit

Permalink
upgrade to phpstan ^2
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaicher committed Dec 13, 2024
1 parent 1f81a28 commit 815d533
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 0 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

/**
* @internal
* @phpstan-ignore trait.unused
*/
trait StaticConnectionTrait
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Schema\AbstractSchemaManager;

/**
* @phpstan-ignore trait.unused
*/
trait MockDriverTrait
{
private $connection;
Expand Down
2 changes: 1 addition & 1 deletion tests/Functional/PhpunitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public function testSkippedTest(): void

public function testSkippedTestDuringSetup(): void
{
$this->assertTrue(true);
$this->expectNotToPerformAssertions();
}

public function testMarkIncomplete(): void
Expand Down

0 comments on commit 815d533

Please sign in to comment.