diff --git a/.dev-tools/composer.json b/.dev-tools/composer.json index 9bfe6f97..a20f9354 100644 --- a/.dev-tools/composer.json +++ b/.dev-tools/composer.json @@ -3,19 +3,19 @@ "require": { "php": "^8.4", "ergebnis/composer-normalize": "^2.48.2", - "infection/infection": "^0.31.2", + "infection/infection": "^0.31.9", "kubawerlos/composer-smaller-lock": "^1.1.0", - "kubawerlos/php-cs-fixer-config": "^5.5", + "kubawerlos/php-cs-fixer-config": "^5.6", "mi-schi/phpmd-extension": "^4.3", "phpmd/phpmd": "^2.15", "phpstan/extension-installer": "^1.4.3", - "phpstan/phpstan": "^2.1.29", - "phpstan/phpstan-phpunit": "^2.0.7", + "phpstan/phpstan": "^2.1.32", + "phpstan/phpstan-phpunit": "^2.0.8", "phpstan/phpstan-strict-rules": "^2.0.7", "shipmonk/composer-dependency-analyser": "^1.8.3", - "shipmonk/dead-code-detector": "^0.13.3", + "shipmonk/dead-code-detector": "^0.13.5", "shipmonk/phpstan-rules": "^4.2.1", - "squizlabs/php_codesniffer": "^4.0", + "squizlabs/php_codesniffer": "^4.0.1", "tomasvotruba/type-coverage": "^2.0.2", "vimeo/psalm": "^6.13.1" }, diff --git a/.dev-tools/composer.lock b/.dev-tools/composer.lock index 5955925c..25ac3461 100644 --- a/.dev-tools/composer.lock +++ b/.dev-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": "5eaeb2678616098171be91a6f1a9197b", + "content-hash": "ba878423ac6b2644df31b25bf7d583aa", "packages": [ { "name": "amphp/amp", @@ -1018,16 +1018,16 @@ }, { "name": "infection/infection", - "version": "0.31.2", + "version": "0.31.9", "source": { "type": "git", "url": "https://github.com/infection/infection.git", - "reference": "242785d48ac2dc00a1d3a77b2048b289dc82cbc9" + "reference": "f9628fcd7f76eadf24726e57a81937c42458232b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/infection/infection/zipball/242785d48ac2dc00a1d3a77b2048b289dc82cbc9", - "reference": "242785d48ac2dc00a1d3a77b2048b289dc82cbc9" + "url": "https://api.github.com/repos/infection/infection/zipball/f9628fcd7f76eadf24726e57a81937c42458232b", + "reference": "f9628fcd7f76eadf24726e57a81937c42458232b" }, "require": { "colinodell/json5": "^3.0", @@ -1101,16 +1101,16 @@ }, { "name": "justinrainbow/json-schema", - "version": "6.5.2", + "version": "6.6.1", "source": { "type": "git", "url": "https://github.com/jsonrainbow/json-schema.git", - "reference": "ac0d369c09653cf7af561f6d91a705bc617a87b8" + "reference": "fd8e5c6b1badb998844ad34ce0abcd71a0aeb396" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/jsonrainbow/json-schema/zipball/ac0d369c09653cf7af561f6d91a705bc617a87b8", - "reference": "ac0d369c09653cf7af561f6d91a705bc617a87b8" + "url": "https://api.github.com/repos/jsonrainbow/json-schema/zipball/fd8e5c6b1badb998844ad34ce0abcd71a0aeb396", + "reference": "fd8e5c6b1badb998844ad34ce0abcd71a0aeb396" }, "require": { "ext-json": "*", @@ -1203,21 +1203,21 @@ }, { "name": "kubawerlos/php-cs-fixer-config", - "version": "v5.5.0", + "version": "v5.6.0", "source": { "type": "git", "url": "https://github.com/kubawerlos/php-cs-fixer-config.git", - "reference": "d8e692c585a1b84cce68a1c17da03331edcf9352" + "reference": "7ee69d534bd0677747dc023e2f832bc643072906" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kubawerlos/php-cs-fixer-config/zipball/d8e692c585a1b84cce68a1c17da03331edcf9352", - "reference": "d8e692c585a1b84cce68a1c17da03331edcf9352" + "url": "https://api.github.com/repos/kubawerlos/php-cs-fixer-config/zipball/7ee69d534bd0677747dc023e2f832bc643072906", + "reference": "7ee69d534bd0677747dc023e2f832bc643072906" }, "require": { "kubawerlos/php-cs-fixer-custom-fixers": "^3.34", "php": "^8.3", - "php-cs-fixer/shim": "^3.87" + "php-cs-fixer/shim": "^3.88" }, "bin": [ "fixinit" @@ -1235,16 +1235,16 @@ }, { "name": "kubawerlos/php-cs-fixer-custom-fixers", - "version": "v3.34.0", + "version": "v3.35.1", "source": { "type": "git", "url": "https://github.com/kubawerlos/php-cs-fixer-custom-fixers.git", - "reference": "230dd015f9fa253850430250caf65f5af1cc1e89" + "reference": "2a35f80ae24ca77443a7af1599c3a3db1b6bd395" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kubawerlos/php-cs-fixer-custom-fixers/zipball/230dd015f9fa253850430250caf65f5af1cc1e89", - "reference": "230dd015f9fa253850430250caf65f5af1cc1e89" + "url": "https://api.github.com/repos/kubawerlos/php-cs-fixer-custom-fixers/zipball/2a35f80ae24ca77443a7af1599c3a3db1b6bd395", + "reference": "2a35f80ae24ca77443a7af1599c3a3db1b6bd395" }, "require": { "ext-filter": "*", @@ -1492,16 +1492,16 @@ }, { "name": "nikic/php-parser", - "version": "v5.6.1", + "version": "v5.6.2", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2" + "reference": "3a454ca033b9e06b63282ce19562e892747449bb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2", - "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2" + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/3a454ca033b9e06b63282ce19562e892747449bb", + "reference": "3a454ca033b9e06b63282ce19562e892747449bb" }, "require": { "ext-ctype": "*", @@ -1596,16 +1596,16 @@ }, { "name": "php-cs-fixer/shim", - "version": "v3.88.2", + "version": "v3.89.2", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/shim.git", - "reference": "b70300670e5a37dd3a9cb0f188e186c8c206f70f" + "reference": "8f1bf4fd7d8270020cd3c58756fcf3615ed14b68" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/b70300670e5a37dd3a9cb0f188e186c8c206f70f", - "reference": "b70300670e5a37dd3a9cb0f188e186c8c206f70f" + "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/8f1bf4fd7d8270020cd3c58756fcf3615ed14b68", + "reference": "8f1bf4fd7d8270020cd3c58756fcf3615ed14b68" }, "require": { "ext-json": "*", @@ -1826,16 +1826,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.1.29", - "source": { - "type": "git", - "url": "https://github.com/phpstan/phpstan-phar-composer-source.git", - "reference": "git" - }, + "version": "2.1.32", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/d618573eed4a1b6b75e37b2e0b65ac65c885d88e", - "reference": "d618573eed4a1b6b75e37b2e0b65ac65c885d88e" + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e126cad1e30a99b137b8ed75a85a676450ebb227", + "reference": "e126cad1e30a99b137b8ed75a85a676450ebb227" }, "require": { "php": "^7.4|^8.0" @@ -1857,20 +1852,20 @@ }, { "name": "phpstan/phpstan-phpunit", - "version": "2.0.7", + "version": "2.0.8", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-phpunit.git", - "reference": "9a9b161baee88a5f5c58d816943cff354ff233dc" + "reference": "2fe9fbeceaf76dd1ebaa7bbbb25e2fb5e59db2fe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/9a9b161baee88a5f5c58d816943cff354ff233dc", - "reference": "9a9b161baee88a5f5c58d816943cff354ff233dc" + "url": "https://api.github.com/repos/phpstan/phpstan-phpunit/zipball/2fe9fbeceaf76dd1ebaa7bbbb25e2fb5e59db2fe", + "reference": "2fe9fbeceaf76dd1ebaa7bbbb25e2fb5e59db2fe" }, "require": { "php": "^7.4 || ^8.0", - "phpstan/phpstan": "^2.1.18" + "phpstan/phpstan": "^2.1.32" }, "type": "phpstan-extension", "extra": { @@ -2217,16 +2212,16 @@ }, { "name": "sanmai/pipeline", - "version": "7.2", + "version": "7.5", "source": { "type": "git", "url": "https://github.com/sanmai/pipeline.git", - "reference": "9ead38671b86a2c689484a871c72ce645326e9dd" + "reference": "c3b87db671ee0bc286860bd13bdb7cfc108b7d7e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sanmai/pipeline/zipball/9ead38671b86a2c689484a871c72ce645326e9dd", - "reference": "9ead38671b86a2c689484a871c72ce645326e9dd" + "url": "https://api.github.com/repos/sanmai/pipeline/zipball/c3b87db671ee0bc286860bd13bdb7cfc108b7d7e", + "reference": "c3b87db671ee0bc286860bd13bdb7cfc108b7d7e" }, "require": { "php": ">=8.2" @@ -2316,16 +2311,16 @@ }, { "name": "shipmonk/dead-code-detector", - "version": "0.13.3", + "version": "0.13.5", "source": { "type": "git", "url": "https://github.com/shipmonk-rnd/dead-code-detector.git", - "reference": "40ab4426238c26aa0ddb963b41ffd438450153a1" + "reference": "a12cdd093624362743c8814a96a54fcc0a57d96d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/shipmonk-rnd/dead-code-detector/zipball/40ab4426238c26aa0ddb963b41ffd438450153a1", - "reference": "40ab4426238c26aa0ddb963b41ffd438450153a1" + "url": "https://api.github.com/repos/shipmonk-rnd/dead-code-detector/zipball/a12cdd093624362743c8814a96a54fcc0a57d96d", + "reference": "a12cdd093624362743c8814a96a54fcc0a57d96d" }, "require": { "php": "^7.4 || ^8.0", @@ -2386,16 +2381,16 @@ }, { "name": "spatie/array-to-xml", - "version": "3.4.0", + "version": "3.4.1", "source": { "type": "git", "url": "https://github.com/spatie/array-to-xml.git", - "reference": "7dcfc67d60b0272926dabad1ec01f6b8a5fb5e67" + "reference": "6a740f39415aee8886aea10333403adc77d50791" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spatie/array-to-xml/zipball/7dcfc67d60b0272926dabad1ec01f6b8a5fb5e67", - "reference": "7dcfc67d60b0272926dabad1ec01f6b8a5fb5e67" + "url": "https://api.github.com/repos/spatie/array-to-xml/zipball/6a740f39415aee8886aea10333403adc77d50791", + "reference": "6a740f39415aee8886aea10333403adc77d50791" }, "require": { "ext-dom": "*", @@ -2419,16 +2414,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "4.0.0", + "version": "4.0.1", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", - "reference": "06113cfdaf117fc2165f9cd040bd0f17fcd5242d" + "reference": "0525c73950de35ded110cffafb9892946d7771b5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/06113cfdaf117fc2165f9cd040bd0f17fcd5242d", - "reference": "06113cfdaf117fc2165f9cd040bd0f17fcd5242d" + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/0525c73950de35ded110cffafb9892946d7771b5", + "reference": "0525c73950de35ded110cffafb9892946d7771b5" }, "require": { "ext-simplexml": "*", @@ -2448,16 +2443,16 @@ }, { "name": "symfony/config", - "version": "v7.3.2", + "version": "v7.3.6", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "faef36e271bbeb74a9d733be4b56419b157762e2" + "reference": "9d18eba95655a3152ae4c1d53c6cc34eb4d4a0b7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/faef36e271bbeb74a9d733be4b56419b157762e2", - "reference": "faef36e271bbeb74a9d733be4b56419b157762e2" + "url": "https://api.github.com/repos/symfony/config/zipball/9d18eba95655a3152ae4c1d53c6cc34eb4d4a0b7", + "reference": "9d18eba95655a3152ae4c1d53c6cc34eb4d4a0b7" }, "require": { "php": ">=8.2", @@ -2481,16 +2476,16 @@ }, { "name": "symfony/console", - "version": "v7.3.3", + "version": "v7.3.6", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "cb0102a1c5ac3807cf3fdf8bea96007df7fdbea7" + "reference": "c28ad91448f86c5f6d9d2c70f0cf68bf135f252a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/cb0102a1c5ac3807cf3fdf8bea96007df7fdbea7", - "reference": "cb0102a1c5ac3807cf3fdf8bea96007df7fdbea7" + "url": "https://api.github.com/repos/symfony/console/zipball/c28ad91448f86c5f6d9d2c70f0cf68bf135f252a", + "reference": "c28ad91448f86c5f6d9d2c70f0cf68bf135f252a" }, "require": { "php": ">=8.2", @@ -2518,16 +2513,16 @@ }, { "name": "symfony/dependency-injection", - "version": "v7.3.3", + "version": "v7.3.6", "source": { "type": "git", "url": "https://github.com/symfony/dependency-injection.git", - "reference": "ab6c38dad5da9b15b1f7afb2f5c5814112e70261" + "reference": "98af8bb46c56aedd9dd5a7f0414fc72bf2dcfe69" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/ab6c38dad5da9b15b1f7afb2f5c5814112e70261", - "reference": "ab6c38dad5da9b15b1f7afb2f5c5814112e70261" + "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/98af8bb46c56aedd9dd5a7f0414fc72bf2dcfe69", + "reference": "98af8bb46c56aedd9dd5a7f0414fc72bf2dcfe69" }, "require": { "php": ">=8.2", @@ -2592,16 +2587,16 @@ }, { "name": "symfony/filesystem", - "version": "v7.3.2", + "version": "v7.3.6", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "edcbb768a186b5c3f25d0643159a787d3e63b7fd" + "reference": "e9bcfd7837928ab656276fe00464092cc9e1826a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/edcbb768a186b5c3f25d0643159a787d3e63b7fd", - "reference": "edcbb768a186b5c3f25d0643159a787d3e63b7fd" + "url": "https://api.github.com/repos/symfony/filesystem/zipball/e9bcfd7837928ab656276fe00464092cc9e1826a", + "reference": "e9bcfd7837928ab656276fe00464092cc9e1826a" }, "require": { "php": ">=8.2", @@ -2624,16 +2619,16 @@ }, { "name": "symfony/finder", - "version": "v7.3.2", + "version": "v7.3.5", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "2a6614966ba1074fa93dae0bc804227422df4dfe" + "reference": "9f696d2f1e340484b4683f7853b273abff94421f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/2a6614966ba1074fa93dae0bc804227422df4dfe", - "reference": "2a6614966ba1074fa93dae0bc804227422df4dfe" + "url": "https://api.github.com/repos/symfony/finder/zipball/9f696d2f1e340484b4683f7853b273abff94421f", + "reference": "9f696d2f1e340484b4683f7853b273abff94421f" }, "require": { "php": ">=8.2" @@ -2847,16 +2842,16 @@ }, { "name": "symfony/process", - "version": "v7.3.3", + "version": "v7.3.4", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "32241012d521e2e8a9d713adb0812bb773b907f1" + "reference": "f24f8f316367b30810810d4eb30c543d7003ff3b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/32241012d521e2e8a9d713adb0812bb773b907f1", - "reference": "32241012d521e2e8a9d713adb0812bb773b907f1" + "url": "https://api.github.com/repos/symfony/process/zipball/f24f8f316367b30810810d4eb30c543d7003ff3b", + "reference": "f24f8f316367b30810810d4eb30c543d7003ff3b" }, "require": { "php": ">=8.2" @@ -2877,16 +2872,16 @@ }, { "name": "symfony/service-contracts", - "version": "v3.6.0", + "version": "v3.6.1", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "f021b05a130d35510bd6b25fe9053c2a8a15d5d4" + "reference": "45112560a3ba2d715666a509a0bc9521d10b6c43" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/f021b05a130d35510bd6b25fe9053c2a8a15d5d4", - "reference": "f021b05a130d35510bd6b25fe9053c2a8a15d5d4" + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/45112560a3ba2d715666a509a0bc9521d10b6c43", + "reference": "45112560a3ba2d715666a509a0bc9521d10b6c43" }, "require": { "php": ">=8.1", @@ -2918,16 +2913,16 @@ }, { "name": "symfony/string", - "version": "v7.3.3", + "version": "v7.3.4", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "17a426cce5fd1f0901fefa9b2a490d0038fd3c9c" + "reference": "f96476035142921000338bad71e5247fbc138872" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/17a426cce5fd1f0901fefa9b2a490d0038fd3c9c", - "reference": "17a426cce5fd1f0901fefa9b2a490d0038fd3c9c" + "url": "https://api.github.com/repos/symfony/string/zipball/f96476035142921000338bad71e5247fbc138872", + "reference": "f96476035142921000338bad71e5247fbc138872" }, "require": { "php": ">=8.2", @@ -2955,16 +2950,16 @@ }, { "name": "symfony/var-exporter", - "version": "v7.3.3", + "version": "v7.3.4", "source": { "type": "git", "url": "https://github.com/symfony/var-exporter.git", - "reference": "d4dfcd2a822cbedd7612eb6fbd260e46f87b7137" + "reference": "0f020b544a30a7fe8ba972e53ee48a74c0bc87f4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-exporter/zipball/d4dfcd2a822cbedd7612eb6fbd260e46f87b7137", - "reference": "d4dfcd2a822cbedd7612eb6fbd260e46f87b7137" + "url": "https://api.github.com/repos/symfony/var-exporter/zipball/0f020b544a30a7fe8ba972e53ee48a74c0bc87f4", + "reference": "0f020b544a30a7fe8ba972e53ee48a74c0bc87f4" }, "require": { "php": ">=8.2", @@ -3207,19 +3202,21 @@ }, { "name": "webmozart/assert", - "version": "1.11.0", + "version": "1.12.1", "source": { "type": "git", "url": "https://github.com/webmozarts/assert.git", - "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991" + "reference": "9be6926d8b485f55b9229203f962b51ed377ba68" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991", - "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991" + "url": "https://api.github.com/repos/webmozarts/assert/zipball/9be6926d8b485f55b9229203f962b51ed377ba68", + "reference": "9be6926d8b485f55b9229203f962b51ed377ba68" }, "require": { "ext-ctype": "*", + "ext-date": "*", + "ext-filter": "*", "php": "^7.2 || ^8.0" }, "type": "library", diff --git a/composer.json b/composer.json index c9ea53cb..178e21e7 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "friendsofphp/php-cs-fixer": "^3.87" }, "require-dev": { - "phpunit/phpunit": "^9.6.24 || ^10.5.51 || ^11.5.32" + "phpunit/phpunit": "^9.6.24 || ^10.5.51 || ^11.5.44" }, "autoload": { "psr-4": { diff --git a/tests/AutoReview/SrcCodeTest.php b/tests/AutoReview/SrcCodeTest.php index a151d29f..6bd0a575 100644 --- a/tests/AutoReview/SrcCodeTest.php +++ b/tests/AutoReview/SrcCodeTest.php @@ -127,7 +127,7 @@ public function testThereIsNoDisallowedFunctionUsedDirectly(string $className): } /** - * @return iterable + * @return iterable */ public static function provideThereIsNoDisallowedFunctionUsedDirectlyCases(): iterable { @@ -142,6 +142,8 @@ public static function provideThereIsNoDisallowedFunctionUsedDirectlyCases(): it if ($file->getRelativePath() !== '') { $namespace .= '\\' . \str_replace('/', '\\', $file->getRelativePath()); } + + /** @var class-string $className */ $className = $namespace . '\\' . $file->getBasename('.php'); yield $className => [$className]; diff --git a/tests/AutoReview/TestsCodeTest.php b/tests/AutoReview/TestsCodeTest.php index ddac404c..c90cd085 100644 --- a/tests/AutoReview/TestsCodeTest.php +++ b/tests/AutoReview/TestsCodeTest.php @@ -156,11 +156,11 @@ public function testDataProvidersValues(string $className): void } /** - * @return iterable + * @return iterable */ public static function provideTestClassCases(): iterable { - /** @var \ArrayIterator */ + /** @var \ArrayIterator */ static $tests; if ($tests === null) { @@ -174,12 +174,14 @@ public static function provideTestClassCases(): iterable /** @var SplFileInfo $file */ foreach ($finder as $file) { - $className = 'Tests'; + $name = 'Tests'; if ($file->getRelativePath() !== '') { - $className .= '\\' . \str_replace('/', '\\', $file->getRelativePath()); + $name .= '\\' . \str_replace('/', '\\', $file->getRelativePath()); } - $className .= '\\' . $file->getBasename('.php'); + /** @var class-string $className */ + $className = $name . '\\' . $file->getBasename('.php'); + $testsArray[$className] = [$className]; } diff --git a/tests/Fixer/MultilinePromotedPropertiesFixerTest.php b/tests/Fixer/MultilinePromotedPropertiesFixerTest.php index 443651fd..c3c67823 100644 --- a/tests/Fixer/MultilinePromotedPropertiesFixerTest.php +++ b/tests/Fixer/MultilinePromotedPropertiesFixerTest.php @@ -18,6 +18,8 @@ * * @covers \PhpCsFixerCustomFixers\Fixer\MultilinePromotedPropertiesFixer * + * @phpstan-import-type _InputConfig from \PhpCsFixer\Fixer\FunctionNotation\MultilinePromotedPropertiesFixer + * * @requires PHP >= 8.0 */ final class MultilinePromotedPropertiesFixerTest extends AbstractFixerTestCase @@ -43,7 +45,7 @@ public function testIsRisky(): void } /** - * @param array $configuration + * @param _InputConfig $configuration * * @dataProvider provideFixCases */ @@ -53,7 +55,7 @@ public function testFix(string $expected, ?string $input = null, array $configur } /** - * @return iterable, 3?: WhitespacesFixerConfig}> + * @return iterable */ public static function provideFixCases(): iterable { diff --git a/tests/Fixer/PhpdocTagNoNamedArgumentsFixerTest.php b/tests/Fixer/PhpdocTagNoNamedArgumentsFixerTest.php index 28327da8..08127b54 100644 --- a/tests/Fixer/PhpdocTagNoNamedArgumentsFixerTest.php +++ b/tests/Fixer/PhpdocTagNoNamedArgumentsFixerTest.php @@ -19,6 +19,8 @@ * @internal * * @covers \PhpCsFixerCustomFixers\Fixer\PhpdocTagNoNamedArgumentsFixer + * + * @phpstan-import-type _InputConfig from \PhpCsFixerCustomFixers\Fixer\PhpdocTagNoNamedArgumentsFixer */ final class PhpdocTagNoNamedArgumentsFixerTest extends AbstractFixerTestCase { @@ -54,7 +56,7 @@ public function testSuccessorName(): void } /** - * @param array $configuration + * @param _InputConfig $configuration * * @dataProvider provideFixCases */ @@ -64,7 +66,7 @@ public function testFix(string $expected, ?string $input = null, array $configur } /** - * @return iterable + * @return iterable */ public static function provideFixCases(): iterable { diff --git a/tests/Fixer/PromotedConstructorPropertyFixerTest.php b/tests/Fixer/PromotedConstructorPropertyFixerTest.php index 9cc52092..53cb37a3 100644 --- a/tests/Fixer/PromotedConstructorPropertyFixerTest.php +++ b/tests/Fixer/PromotedConstructorPropertyFixerTest.php @@ -16,6 +16,8 @@ * * @covers \PhpCsFixerCustomFixers\Fixer\PromotedConstructorPropertyFixer * + * @phpstan-import-type _InputConfig from \PhpCsFixerCustomFixers\Fixer\PromotedConstructorPropertyFixer + * * @requires PHP >= 8.0 */ final class PromotedConstructorPropertyFixerTest extends AbstractFixerTestCase @@ -33,7 +35,7 @@ public function testIsRisky(): void } /** - * @param array> $configuration + * @param _InputConfig $configuration * * @dataProvider provideFixCases */ @@ -43,7 +45,7 @@ public function testFix(string $expected, ?string $input = null, array $configur } /** - * @return iterable + * @return iterable */ public static function provideFixCases(): iterable {