diff --git a/phpstan.neon b/phpstan.neon index 5c0425a95..350ec8556 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -50,3 +50,6 @@ parameters: - identifier: method.nonObject path: test/unit/ + - + identifier: method.resultUnused + path: test/unit/ diff --git a/test/unit/SourceLocator/Type/AutoloadSourceLocatorTest.php b/test/unit/SourceLocator/Type/AutoloadSourceLocatorTest.php index 9ca33733b..78a1a24a9 100644 --- a/test/unit/SourceLocator/Type/AutoloadSourceLocatorTest.php +++ b/test/unit/SourceLocator/Type/AutoloadSourceLocatorTest.php @@ -457,6 +457,7 @@ public function testBrokenAutoloader(): void spl_autoload_register($brokenAutoloader); + /** @phpstan-ignore deadCode.unreachable */ try { (new AutoloadSourceLocator($this->astLocator)) ->locateIdentifier( diff --git a/tools/composer.json b/tools/composer.json index 97f0c4d5c..749b7a8d3 100644 --- a/tools/composer.json +++ b/tools/composer.json @@ -1,8 +1,8 @@ { "require": { "doctrine/coding-standard": "^13.0.1", - "phpstan/phpstan": "^2.1.17", - "phpstan/phpstan-phpunit": "^2.0.6", + "phpstan/phpstan": "^2.1.19", + "phpstan/phpstan-phpunit": "^2.0.7", "vimeo/psalm": "^6.13.0", "roave/backward-compatibility-check": "^8.14.0", "roave/infection-static-analysis-plugin": "^1.38.0" diff --git a/tools/composer.lock b/tools/composer.lock index e7430271f..0d91d5b3a 100644 --- a/tools/composer.lock +++ b/tools/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "bb42ead90e03acdf9706876125ec1104", + "content-hash": "f5b012efdbbded9f579a0e8e2de0700a", "packages": [ { "name": "amphp/amp", @@ -3451,16 +3451,16 @@ }, { "name": "phpstan/phpstan", - "version": "2.1.17", + "version": "2.1.19", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "89b5ef665716fa2a52ecd2633f21007a6a349053" + "reference": "473a8c30e450d87099f76313edcbb90852f9afdf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/89b5ef665716fa2a52ecd2633f21007a6a349053", - "reference": "89b5ef665716fa2a52ecd2633f21007a6a349053", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/473a8c30e450d87099f76313edcbb90852f9afdf", + "reference": "473a8c30e450d87099f76313edcbb90852f9afdf", "shasum": "" }, "require": { @@ -3505,25 +3505,25 @@ "type": "github" } ], - "time": "2025-05-21T20:55:28+00:00" + "time": "2025-07-21T19:58:24+00:00" }, { "name": "phpstan/phpstan-phpunit", - "version": "2.0.6", + "version": "2.0.7", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-phpunit.git", - "reference": "6b92469f8a7995e626da3aa487099617b8dfa260" + "reference": "9a9b161baee88a5f5c58d816943cff354ff233dc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/6b92469f8a7995e626da3aa487099617b8dfa260", - "reference": "6b92469f8a7995e626da3aa487099617b8dfa260", + "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/9a9b161baee88a5f5c58d816943cff354ff233dc", + "reference": "9a9b161baee88a5f5c58d816943cff354ff233dc", "shasum": "" }, "require": { "php": "^7.4 || ^8.0", - "phpstan/phpstan": "^2.0.4" + "phpstan/phpstan": "^2.1.18" }, "conflict": { "phpunit/phpunit": "<7.0" @@ -3556,9 +3556,9 @@ "description": "PHPUnit extensions and rules for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-phpunit/issues", - "source": "https://github.com/phpstan/phpstan-phpunit/tree/2.0.6" + "source": "https://github.com/phpstan/phpstan-phpunit/tree/2.0.7" }, - "time": "2025-03-26T12:47:06+00:00" + "time": "2025-07-13T11:31:46+00:00" }, { "name": "psr/container",