diff --git a/tools/.phpstan/composer.json b/tools/.phpstan/composer.json index 5ac007ba1..94d322a2a 100644 --- a/tools/.phpstan/composer.json +++ b/tools/.phpstan/composer.json @@ -4,7 +4,7 @@ "phpstan/extension-installer": "^1.4.3", "phpstan/phpstan-phpunit": "^2.1.1", "phpstan/phpstan-strict-rules": "^2.1.1", - "ergebnis/phpstan-rules": "^2.17.0", + "ergebnis/phpstan-rules": "^2.17.1", "phpstan/phpstan-deprecation-rules": "^2.0.5" }, "config": { diff --git a/tools/.phpstan/composer.lock b/tools/.phpstan/composer.lock index e147d4e8a..791d6c810 100644 --- a/tools/.phpstan/composer.lock +++ b/tools/.phpstan/composer.lock @@ -4,21 +4,21 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "382047e55924d6af7bafe9cd6a9080c2", + "content-hash": "64a7f71af8de3bd8f784f930657904be", "packages": [], "packages-dev": [ { "name": "ergebnis/phpstan-rules", - "version": "2.17.0", + "version": "2.17.1", "source": { "type": "git", "url": "https://github.com/ergebnis/phpstan-rules.git", - "reference": "5988e8fe66c09558c73824fce64123fdcd5afae2" + "reference": "67c1bcd57666d30a3da0f744e4776c05178aa0c6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ergebnis/phpstan-rules/zipball/5988e8fe66c09558c73824fce64123fdcd5afae2", - "reference": "5988e8fe66c09558c73824fce64123fdcd5afae2", + "url": "https://api.github.com/repos/ergebnis/phpstan-rules/zipball/67c1bcd57666d30a3da0f744e4776c05178aa0c6", + "reference": "67c1bcd57666d30a3da0f744e4776c05178aa0c6", "shasum": "" }, "require": { @@ -31,19 +31,19 @@ "require-dev": { "codeception/codeception": "^4.0.0 || ^5.0.0", "doctrine/orm": "^2.20.0 || ^3.3.0", - "ergebnis/composer-normalize": "^2.54.0", - "ergebnis/license": "^2.8.0", + "ergebnis/composer-normalize": "^2.56.0", + "ergebnis/license": "^2.9.0", "ergebnis/php-cs-fixer-config": "^6.64.1", - "ergebnis/phpunit-slow-test-detector": "^2.26.0", - "ergebnis/rector-rules": "^1.18.5", + "ergebnis/phpunit-slow-test-detector": "^2.27.0", + "ergebnis/rector-rules": "^1.19.0", "fakerphp/faker": "^1.24.1", "phpstan/extension-installer": "^1.4.3", "phpstan/phpstan-deprecation-rules": "^2.0.5", "phpstan/phpstan-phpunit": "^2.1.1", - "phpstan/phpstan-strict-rules": "^2.1.0", + "phpstan/phpstan-strict-rules": "^2.1.1", "phpunit/phpunit": "^9.6.33", "psr/container": "^2.0.2", - "rector/rector": "^2.7.0", + "rector/rector": "^2.8.3", "symfony/finder": "^5.4.45", "symfony/process": "^5.4.51" }, @@ -85,7 +85,8 @@ "security": "https://github.com/ergebnis/phpstan-rules/blob/main/.github/SECURITY.md", "source": "https://github.com/ergebnis/phpstan-rules" }, - "time": "2026-10-29T11:16:56+00:00" + "time": "2026-11-10T09:41:01+00:00", + "published-time": "2026-11-10T09:41:10+00:00" }, { "name": "ergebnis/version", @@ -162,7 +163,8 @@ "security": "https://github.com/ergebnis/version/blob/main/.github/SECURITY.md", "source": "https://github.com/ergebnis/version" }, - "time": "2026-09-24T19:43:55+00:00" + "time": "2026-09-24T19:43:55+00:00", + "published-time": "2026-09-24T19:44:08+00:00" }, { "name": "phar-io/version", @@ -496,5 +498,5 @@ "prefer-lowest": false, "platform": {}, "platform-dev": {}, - "plugin-api-version": "2.9.0" + "plugin-api-version": "2.11.0" } diff --git a/tools/.phpstan/vendor/composer/installed.json b/tools/.phpstan/vendor/composer/installed.json index 91d74bb9b..f55f4367c 100644 --- a/tools/.phpstan/vendor/composer/installed.json +++ b/tools/.phpstan/vendor/composer/installed.json @@ -2,17 +2,17 @@ "packages": [ { "name": "ergebnis/phpstan-rules", - "version": "2.17.0", - "version_normalized": "2.17.0.0", + "version": "2.17.1", + "version_normalized": "2.17.1.0", "source": { "type": "git", "url": "https://github.com/ergebnis/phpstan-rules.git", - "reference": "5988e8fe66c09558c73824fce64123fdcd5afae2" + "reference": "67c1bcd57666d30a3da0f744e4776c05178aa0c6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ergebnis/phpstan-rules/zipball/5988e8fe66c09558c73824fce64123fdcd5afae2", - "reference": "5988e8fe66c09558c73824fce64123fdcd5afae2", + "url": "https://api.github.com/repos/ergebnis/phpstan-rules/zipball/67c1bcd57666d30a3da0f744e4776c05178aa0c6", + "reference": "67c1bcd57666d30a3da0f744e4776c05178aa0c6", "shasum": "" }, "require": { @@ -25,23 +25,24 @@ "require-dev": { "codeception/codeception": "^4.0.0 || ^5.0.0", "doctrine/orm": "^2.20.0 || ^3.3.0", - "ergebnis/composer-normalize": "^2.54.0", - "ergebnis/license": "^2.8.0", + "ergebnis/composer-normalize": "^2.56.0", + "ergebnis/license": "^2.9.0", "ergebnis/php-cs-fixer-config": "^6.64.1", - "ergebnis/phpunit-slow-test-detector": "^2.26.0", - "ergebnis/rector-rules": "^1.18.5", + "ergebnis/phpunit-slow-test-detector": "^2.27.0", + "ergebnis/rector-rules": "^1.19.0", "fakerphp/faker": "^1.24.1", "phpstan/extension-installer": "^1.4.3", "phpstan/phpstan-deprecation-rules": "^2.0.5", "phpstan/phpstan-phpunit": "^2.1.1", - "phpstan/phpstan-strict-rules": "^2.1.0", + "phpstan/phpstan-strict-rules": "^2.1.1", "phpunit/phpunit": "^9.6.33", "psr/container": "^2.0.2", - "rector/rector": "^2.7.0", + "rector/rector": "^2.8.3", "symfony/finder": "^5.4.45", "symfony/process": "^5.4.51" }, - "time": "2026-10-29T11:16:56+00:00", + "time": "2026-11-10T09:41:01+00:00", + "published-time": "2026-11-10T09:41:10+00:00", "type": "phpstan-extension", "extra": { "phpstan": { diff --git a/tools/.phpstan/vendor/composer/installed.php b/tools/.phpstan/vendor/composer/installed.php index 85df05684..0355b9053 100644 --- a/tools/.phpstan/vendor/composer/installed.php +++ b/tools/.phpstan/vendor/composer/installed.php @@ -3,7 +3,7 @@ 'name' => '__root__', 'pretty_version' => '14.5.x-dev', 'version' => '14.5.9999999.9999999-dev', - 'reference' => 'd0c084dcd75a876434cb5b7183633088329f4482', + 'reference' => '432a79320e4d6ab699b53bb7da9138f07003cace', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), @@ -13,16 +13,16 @@ '__root__' => array( 'pretty_version' => '14.5.x-dev', 'version' => '14.5.9999999.9999999-dev', - 'reference' => 'd0c084dcd75a876434cb5b7183633088329f4482', + 'reference' => '432a79320e4d6ab699b53bb7da9138f07003cace', 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), 'dev_requirement' => false, ), 'ergebnis/phpstan-rules' => array( - 'pretty_version' => '2.17.0', - 'version' => '2.17.0.0', - 'reference' => '5988e8fe66c09558c73824fce64123fdcd5afae2', + 'pretty_version' => '2.17.1', + 'version' => '2.17.1.0', + 'reference' => '67c1bcd57666d30a3da0f744e4776c05178aa0c6', 'type' => 'phpstan-extension', 'install_path' => __DIR__ . '/../ergebnis/phpstan-rules', 'aliases' => array(), diff --git a/tools/.phpstan/vendor/ergebnis/phpstan-rules/CHANGELOG.md b/tools/.phpstan/vendor/ergebnis/phpstan-rules/CHANGELOG.md index 6dbc96b66..59455fea9 100644 --- a/tools/.phpstan/vendor/ergebnis/phpstan-rules/CHANGELOG.md +++ b/tools/.phpstan/vendor/ergebnis/phpstan-rules/CHANGELOG.md @@ -6,7 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## Unreleased -For a full diff see [`2.17.0...main`][2.17.0...main]. +For a full diff see [`2.17.1...main`][2.17.1...main]. + +## [`2.17.1`][2.17.1] + +For a full diff see [`2.17.0...2.17.1`][2.17.0...2.17.1]. + +### Fixed + +- Adjusted `Classes\PHPUnit\Framework\TestCaseWithSuffixRule` to skip the lookup of `PHPUnit\Framework\TestCase` when `phpunit/phpunit` is not installed ([#1182]), by [@konradmichalik] ## [`2.17.0`][2.17.0] @@ -744,7 +752,9 @@ For a full diff see [`362c7ea...0.1.0`][362c7ea...0.1.0]. [2.16.0]: https://github.com/ergebnis/phpstan-rules/releases/tag/2.16.0 [2.16.0...2.17.0]: https://github.com/ergebnis/phpstan-rules/compare/2.16.0...2.17.0 [2.17.0]: https://github.com/ergebnis/phpstan-rules/releases/tag/2.17.0 -[2.17.0...main]: https://github.com/ergebnis/phpstan-rules/compare/2.17.0...main +[2.17.0...2.17.1]: https://github.com/ergebnis/phpstan-rules/compare/2.17.0...2.17.1 +[2.17.1]: https://github.com/ergebnis/phpstan-rules/releases/tag/2.17.1 +[2.17.1...main]: https://github.com/ergebnis/phpstan-rules/compare/2.17.1...main [#1]: https://github.com/ergebnis/phpstan-rules/pull/1 [#4]: https://github.com/ergebnis/phpstan-rules/pull/4 @@ -868,6 +878,7 @@ For a full diff see [`362c7ea...0.1.0`][362c7ea...0.1.0]. [#1167]: https://github.com/ergebnis/phpstan-rules/pull/1167 [#1168]: https://github.com/ergebnis/phpstan-rules/pull/1168 [#1169]: https://github.com/ergebnis/phpstan-rules/pull/1169 +[#1182]: https://github.com/ergebnis/phpstan-rules/pull/1182 [@alfredbez]: https://github.com/alfredbez [@cosmastech]: https://github.com/cosmastech @@ -875,6 +886,7 @@ For a full diff see [`362c7ea...0.1.0`][362c7ea...0.1.0]. [@enumag]: https://github.com/enumag [@ergebnis]: https://github.com/ergebnis [@Great-Antique]: https://github.com/Great-Antique +[@konradmichalik]: https://github.com/konradmichalik [@Legend999]: https://github.com/Legend999 [@localheinz]: https://github.com/localheinz [@manuelkiessling]: https://github.com/manuelkiessling diff --git a/tools/.phpstan/vendor/ergebnis/phpstan-rules/composer.json b/tools/.phpstan/vendor/ergebnis/phpstan-rules/composer.json index c6d47fe67..bea4f240f 100644 --- a/tools/.phpstan/vendor/ergebnis/phpstan-rules/composer.json +++ b/tools/.phpstan/vendor/ergebnis/phpstan-rules/composer.json @@ -30,19 +30,19 @@ "require-dev": { "codeception/codeception": "^4.0.0 || ^5.0.0", "doctrine/orm": "^2.20.0 || ^3.3.0", - "ergebnis/composer-normalize": "^2.54.0", - "ergebnis/license": "^2.8.0", + "ergebnis/composer-normalize": "^2.56.0", + "ergebnis/license": "^2.9.0", "ergebnis/php-cs-fixer-config": "^6.64.1", - "ergebnis/phpunit-slow-test-detector": "^2.26.0", - "ergebnis/rector-rules": "^1.18.5", + "ergebnis/phpunit-slow-test-detector": "^2.27.0", + "ergebnis/rector-rules": "^1.19.0", "fakerphp/faker": "^1.24.1", "phpstan/extension-installer": "^1.4.3", "phpstan/phpstan-deprecation-rules": "^2.0.5", "phpstan/phpstan-phpunit": "^2.1.1", - "phpstan/phpstan-strict-rules": "^2.1.0", + "phpstan/phpstan-strict-rules": "^2.1.1", "phpunit/phpunit": "^9.6.33", "psr/container": "^2.0.2", - "rector/rector": "^2.7.0", + "rector/rector": "^2.8.3", "symfony/finder": "^5.4.45", "symfony/process": "^5.4.51" }, diff --git a/tools/.phpstan/vendor/ergebnis/phpstan-rules/src/Classes/PHPUnit/Framework/TestCaseWithSuffixRule.php b/tools/.phpstan/vendor/ergebnis/phpstan-rules/src/Classes/PHPUnit/Framework/TestCaseWithSuffixRule.php index 1076ba897..10050df8c 100644 --- a/tools/.phpstan/vendor/ergebnis/phpstan-rules/src/Classes/PHPUnit/Framework/TestCaseWithSuffixRule.php +++ b/tools/.phpstan/vendor/ergebnis/phpstan-rules/src/Classes/PHPUnit/Framework/TestCaseWithSuffixRule.php @@ -110,6 +110,10 @@ public function processNode( $extendedPhpunitTestCaseClassName = ''; foreach (self::$phpunitTestCaseClassNames as $phpunitTestCaseClassName) { + if (!$this->reflectionProvider->hasClass($phpunitTestCaseClassName)) { + continue; + } + if ($classReflection->isSubclassOfClass($this->reflectionProvider->getClass($phpunitTestCaseClassName))) { $extendedPhpunitTestCaseClassName = $phpunitTestCaseClassName;