From 0d7bd31c7ed58c215ce37237aecac3b14c8bfa26 Mon Sep 17 00:00:00 2001 From: Peter Morvay Date: Sat, 18 Oct 2025 15:28:31 +0200 Subject: [PATCH 1/3] refactor: update code and dependencies to use Rector 2.0 with PHPStan 2.0 --- README.md | 25 +- composer.json | 12 +- composer.lock | 665 +++++++++++------- phpstan.neon | 1 + pint.json | 2 +- .../ConstFetch/ConstToFuncCallRector.php | 49 +- src/Rules/FuncCall/ParameterAdderRector.php | 6 +- .../FuncCall/ParameterPrependerRector.php | 5 +- .../FuncCall/ReturnFirstArgumentRector.php | 11 +- src/Rules/MethodCall/ParameterAdderRector.php | 6 +- .../MethodCall/RemoveMethodCallRector.php | 7 +- .../MethodCall/ReturnFirstArgumentRector.php | 14 +- src/Set/WordPressLevelSetList.php | 4 +- src/Set/WordPressSetList.php | 4 +- .../ConstToFuncCallRectorTest.php | 5 +- .../TheEditorRector/TheEditorRectorTest.php | 5 +- .../WpKsesJsEntitiesRectorTest.php | 5 +- .../ParameterAdderRectorTest.php | 5 +- .../ParameterPrependerRectorTest.php | 5 +- .../ReturnFirstArgumentRectorTest.php | 5 +- .../ParameterAdderRectorTest.php | 5 +- .../RemoveMethodCallRectorTest.php | 5 +- .../ReturnFirstArgumentRectorTest.php | 5 +- .../Sets/Level/UpToWp68/UpToWp68Test.php | 5 +- tests/Rector/Sets/Wp071/Wp071Test.php | 5 +- tests/Rector/Sets/Wp10/Wp10Test.php | 5 +- tests/Rector/Sets/Wp12/Wp12Test.php | 5 +- tests/Rector/Sets/Wp15/Wp15Test.php | 5 +- tests/Rector/Sets/Wp20/Wp20Test.php | 5 +- tests/Rector/Sets/Wp21/Wp21Test.php | 5 +- tests/Rector/Sets/Wp22/Wp22Test.php | 5 +- tests/Rector/Sets/Wp23/Wp23Test.php | 5 +- tests/Rector/Sets/Wp25/Wp25Test.php | 5 +- tests/Rector/Sets/Wp26/Wp26Test.php | 5 +- tests/Rector/Sets/Wp27/Wp27Test.php | 5 +- tests/Rector/Sets/Wp28/Wp28Test.php | 5 +- tests/Rector/Sets/Wp29/Wp29Test.php | 5 +- tests/Rector/Sets/Wp30/Wp30Test.php | 5 +- tests/Rector/Sets/Wp31/Wp31Test.php | 5 +- tests/Rector/Sets/Wp32/Wp32Test.php | 5 +- tests/Rector/Sets/Wp33/Wp33Test.php | 5 +- tests/Rector/Sets/Wp34/Wp34Test.php | 5 +- tests/Rector/Sets/Wp35/Wp35Test.php | 5 +- tests/Rector/Sets/Wp36/Wp36Test.php | 5 +- tests/Rector/Sets/Wp37/Wp37Test.php | 5 +- tests/Rector/Sets/Wp38/Wp38Test.php | 5 +- tests/Rector/Sets/Wp39/Wp39Test.php | 5 +- tests/Rector/Sets/Wp40/Wp40Test.php | 5 +- tests/Rector/Sets/Wp41/Wp41Test.php | 5 +- tests/Rector/Sets/Wp42/Wp42Test.php | 5 +- tests/Rector/Sets/Wp43/Wp43Test.php | 5 +- tests/Rector/Sets/Wp44/Wp44Test.php | 5 +- tests/Rector/Sets/Wp45/Wp45Test.php | 5 +- tests/Rector/Sets/Wp46/Wp46Test.php | 5 +- tests/Rector/Sets/Wp47/Wp47Test.php | 5 +- tests/Rector/Sets/Wp48/Wp48Test.php | 5 +- tests/Rector/Sets/Wp49/Wp49Test.php | 5 +- tests/Rector/Sets/Wp50/Wp50Test.php | 5 +- tests/Rector/Sets/Wp51/Wp51Test.php | 5 +- tests/Rector/Sets/Wp52/Wp52Test.php | 5 +- tests/Rector/Sets/Wp53/Wp53Test.php | 5 +- tests/Rector/Sets/Wp54/Wp54Test.php | 5 +- tests/Rector/Sets/Wp55/Wp55Test.php | 5 +- tests/Rector/Sets/Wp56/Wp56Test.php | 5 +- tests/Rector/Sets/Wp57/Wp57Test.php | 5 +- tests/Rector/Sets/Wp58/Wp58Test.php | 5 +- tests/Rector/Sets/Wp59/Wp59Test.php | 5 +- tests/Rector/Sets/Wp60/Wp60Test.php | 5 +- tests/Rector/Sets/Wp61/Wp61Test.php | 5 +- tests/Rector/Sets/Wp62/Wp62Test.php | 5 +- tests/Rector/Sets/Wp63/Wp63Test.php | 5 +- tests/Rector/Sets/Wp64/Wp64Test.php | 5 +- tests/Rector/Sets/Wp65/Wp65Test.php | 5 +- tests/Rector/Sets/Wp66/Wp66Test.php | 5 +- tests/Rector/Sets/Wp67/Wp67Test.php | 5 +- tests/Rector/Sets/Wp68/Wp68Test.php | 5 +- 76 files changed, 637 insertions(+), 484 deletions(-) diff --git a/README.md b/README.md index 72fa90b..4142b5a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ # Rector Rules for WordPress -This package is a [Rector](https://github.com/rectorphp/rector) extension developed to provide upgrades rules for WordPress. +This package is a [Rector](https://github.com/rectorphp/rector) extension developed to provide upgrade rules for WordPress. + +## Requirements + +- PHP 8.2 or higher +- Rector 2.0 or higher ## Install @@ -12,7 +17,7 @@ composer require fsylum/rector-wordpress --dev ## Use Sets -To add a set to your config, use `Fsylum\RectorWordPress\Set\WordPressSetList` class and pick one of the constants. For example, to update the codebase to WordPress 6.4, use `WordPressSetList::WP_6_4`. +To add a set to your config, use `Fsylum\RectorWordPress\Set\WordPressSetList` class and pick one of the constants. For example, to update the codebase to WordPress 6.8, use `WordPressSetList::WP_6_8`. ```php use Fsylum\RectorWordPress\Set\WordPressSetList; @@ -20,12 +25,12 @@ use Rector\Config\RectorConfig; return static function (RectorConfig $rectorConfig): void { $rectorConfig->sets([ - WordPressSetList::WP_6_4, + WordPressSetList::WP_6_8, ]); }; ``` -You can also use a level set list to include all the applicable rules from the lowest version, 0.71 up to the one you specified. For example, `WordPressLevelSetList::UP_TO_WP_6_4` will include all the rules from WordPress 0.71 up to 6.4. In most cases, this is the preferable way to transform your code as you only need to specify it once. +You can also use a level set list to include all the applicable rules from the lowest version, 0.71 up to the one you specified. For example, `WordPressLevelSetList::UP_TO_WP_6_8` will include all the rules from WordPress 0.71 up to 6.8. In most cases, this is the preferable way to transform your code as you only need to specify it once. ```php use Fsylum\RectorWordPress\Set\WordPressLevelSetList; @@ -33,7 +38,17 @@ use Rector\Config\RectorConfig; return static function (RectorConfig $rectorConfig): void { $rectorConfig->sets([ - WordPressLevelSetList::UP_TO_WP_6_4, + WordPressLevelSetList::UP_TO_WP_6_8, ]); }; ``` + +## Supported WordPress Versions + +This package provides upgrade rules for WordPress versions from 0.71 to 6.8, covering: +- WordPress 0.71, 1.0, 1.2, 1.5 +- WordPress 2.x (2.0 through 2.9) +- WordPress 3.x (3.0 through 3.9) +- WordPress 4.x (4.0 through 4.9) +- WordPress 5.x (5.0 through 5.9) +- WordPress 6.x (6.0 through 6.8) diff --git a/composer.json b/composer.json index 3544fbc..2e2c8e1 100644 --- a/composer.json +++ b/composer.json @@ -5,16 +5,16 @@ "type": "rector-extension", "require": { "php": ">=8.2", - "rector/rector": "^1.0", + "rector/rector": "^2.0", "webmozart/assert": "^1.11" }, "require-dev": { "ergebnis/composer-normalize": "^2.41", - "laravel/pint": "^1.13", - "phpstan/extension-installer": "^1.3", - "phpstan/phpstan": "^1.10", - "phpstan/phpstan-strict-rules": "^1.5", - "phpstan/phpstan-webmozart-assert": "^1.2", + "laravel/pint": "^1.25", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-strict-rules": "^2.0", + "phpstan/phpstan-webmozart-assert": "^2.0", "phpunit/phpunit": "^10.5" }, "minimum-stability": "dev", diff --git a/composer.lock b/composer.lock index fa414cc..909aad7 100644 --- a/composer.lock +++ b/composer.lock @@ -4,24 +4,19 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "a83a5570c288cef5945ad8e8570facd4", + "content-hash": "03df9e8a2b562000653856854c224090", "packages": [ { "name": "phpstan/phpstan", - "version": "1.11.8", - "source": { - "type": "git", - "url": "https://github.com/phpstan/phpstan.git", - "reference": "6adbd118e6c0515dd2f36b06cde1d6da40f1b8ec" - }, + "version": "2.1.31", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/6adbd118e6c0515dd2f36b06cde1d6da40f1b8ec", - "reference": "6adbd118e6c0515dd2f36b06cde1d6da40f1b8ec", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/ead89849d879fe203ce9292c6ef5e7e76f867b96", + "reference": "ead89849d879fe203ce9292c6ef5e7e76f867b96", "shasum": "" }, "require": { - "php": "^7.2|^8.0" + "php": "^7.4|^8.0" }, "conflict": { "phpstan/phpstan-shim": "*" @@ -62,25 +57,25 @@ "type": "github" } ], - "time": "2024-07-24T07:01:22+00:00" + "time": "2025-10-10T14:14:11+00:00" }, { "name": "rector/rector", - "version": "1.2.2", + "version": "2.2.3", "source": { "type": "git", "url": "https://github.com/rectorphp/rector.git", - "reference": "044e6364017882d1e346da8690eeabc154da5495" + "reference": "d27f976a332a87b5d03553c2e6f04adbe5da034f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/rectorphp/rector/zipball/044e6364017882d1e346da8690eeabc154da5495", - "reference": "044e6364017882d1e346da8690eeabc154da5495", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/d27f976a332a87b5d03553c2e6f04adbe5da034f", + "reference": "d27f976a332a87b5d03553c2e6f04adbe5da034f", "shasum": "" }, "require": { - "php": "^7.2|^8.0", - "phpstan/phpstan": "^1.11" + "php": "^7.4|^8.0", + "phpstan/phpstan": "^2.1.26" }, "conflict": { "rector/rector-doctrine": "*", @@ -105,6 +100,7 @@ "MIT" ], "description": "Instant Upgrade and Automated Refactoring of any PHP code", + "homepage": "https://getrector.com/", "keywords": [ "automation", "dev", @@ -113,7 +109,7 @@ ], "support": { "issues": "https://github.com/rectorphp/rector/issues", - "source": "https://github.com/rectorphp/rector/tree/1.2.2" + "source": "https://github.com/rectorphp/rector/tree/2.2.3" }, "funding": [ { @@ -121,7 +117,7 @@ "type": "github" } ], - "time": "2024-07-25T07:44:34+00:00" + "time": "2025-10-11T21:50:23+00:00" }, { "name": "webmozart/assert", @@ -185,49 +181,56 @@ "packages-dev": [ { "name": "ergebnis/composer-normalize", - "version": "2.43.0", + "version": "2.48.2", "source": { "type": "git", "url": "https://github.com/ergebnis/composer-normalize.git", - "reference": "4b46330c84bb8f43fac79f5c5a05162fc7c80d75" + "reference": "86dc9731b8320f49e9be9ad6d8e4de9b8b0e9b8b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ergebnis/composer-normalize/zipball/4b46330c84bb8f43fac79f5c5a05162fc7c80d75", - "reference": "4b46330c84bb8f43fac79f5c5a05162fc7c80d75", + "url": "https://api.github.com/repos/ergebnis/composer-normalize/zipball/86dc9731b8320f49e9be9ad6d8e4de9b8b0e9b8b", + "reference": "86dc9731b8320f49e9be9ad6d8e4de9b8b0e9b8b", "shasum": "" }, "require": { "composer-plugin-api": "^2.0.0", - "ergebnis/json": "^1.2.0", - "ergebnis/json-normalizer": "^4.5.0", - "ergebnis/json-printer": "^3.5.0", + "ergebnis/json": "^1.4.0", + "ergebnis/json-normalizer": "^4.9.0", + "ergebnis/json-printer": "^3.7.0", "ext-json": "*", - "justinrainbow/json-schema": "^5.2.12", - "localheinz/diff": "^1.1.1", - "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" + "justinrainbow/json-schema": "^5.2.12 || ^6.0.0", + "localheinz/diff": "^1.3.0", + "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0" }, "require-dev": { - "composer/composer": "^2.7.7", - "ergebnis/license": "^2.4.0", - "ergebnis/php-cs-fixer-config": "^6.30.1", - "ergebnis/phpunit-slow-test-detector": "^2.14.0", - "fakerphp/faker": "^1.23.1", + "composer/composer": "^2.8.3", + "ergebnis/license": "^2.7.0", + "ergebnis/php-cs-fixer-config": "^6.53.0", + "ergebnis/phpstan-rules": "^2.11.0", + "ergebnis/phpunit-slow-test-detector": "^2.20.0", + "fakerphp/faker": "^1.24.1", "infection/infection": "~0.26.6", - "phpunit/phpunit": "^9.6.19", - "psalm/plugin-phpunit": "~0.19.0", - "rector/rector": "^1.1.0", - "symfony/filesystem": "^5.4.40", - "vimeo/psalm": "^5.24.0" + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^2.1.17", + "phpstan/phpstan-deprecation-rules": "^2.0.3", + "phpstan/phpstan-phpunit": "^2.0.7", + "phpstan/phpstan-strict-rules": "^2.0.6", + "phpunit/phpunit": "^9.6.20", + "rector/rector": "^2.1.4", + "symfony/filesystem": "^5.4.41" }, "type": "composer-plugin", "extra": { "class": "Ergebnis\\Composer\\Normalize\\NormalizePlugin", + "branch-alias": { + "dev-main": "2.49-dev" + }, + "plugin-optional": true, "composer-normalize": { "indent-size": 2, "indent-style": "space" - }, - "plugin-optional": true + } }, "autoload": { "psr-4": { @@ -258,40 +261,48 @@ "security": "https://github.com/ergebnis/composer-normalize/blob/main/.github/SECURITY.md", "source": "https://github.com/ergebnis/composer-normalize" }, - "time": "2024-06-16T13:22:18+00:00" + "time": "2025-09-06T11:42:34+00:00" }, { "name": "ergebnis/json", - "version": "1.2.0", + "version": "1.6.0", "source": { "type": "git", "url": "https://github.com/ergebnis/json.git", - "reference": "a457f25a5ba7ea11fc94f84d53678c5211abfce0" + "reference": "7b56d2b5d9e897e75b43e2e753075a0904c921b1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ergebnis/json/zipball/a457f25a5ba7ea11fc94f84d53678c5211abfce0", - "reference": "a457f25a5ba7ea11fc94f84d53678c5211abfce0", + "url": "https://api.github.com/repos/ergebnis/json/zipball/7b56d2b5d9e897e75b43e2e753075a0904c921b1", + "reference": "7b56d2b5d9e897e75b43e2e753075a0904c921b1", "shasum": "" }, "require": { "ext-json": "*", - "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" + "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0" }, "require-dev": { - "ergebnis/data-provider": "^3.2.0", - "ergebnis/license": "^2.4.0", - "ergebnis/php-cs-fixer-config": "^6.20.0", - "ergebnis/phpunit-slow-test-detector": "^2.9.0", - "fakerphp/faker": "^1.23.1", + "ergebnis/composer-normalize": "^2.44.0", + "ergebnis/data-provider": "^3.3.0", + "ergebnis/license": "^2.5.0", + "ergebnis/php-cs-fixer-config": "^6.37.0", + "ergebnis/phpstan-rules": "^2.11.0", + "ergebnis/phpunit-slow-test-detector": "^2.16.1", + "fakerphp/faker": "^1.24.0", "infection/infection": "~0.26.6", - "phpunit/phpunit": "^9.6.16", - "psalm/plugin-phpunit": "~0.18.4", - "rector/rector": "~0.19.2", - "vimeo/psalm": "^5.20.0" + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^2.1.22", + "phpstan/phpstan-deprecation-rules": "^2.0.3", + "phpstan/phpstan-phpunit": "^2.0.7", + "phpstan/phpstan-strict-rules": "^2.0.6", + "phpunit/phpunit": "^9.6.24", + "rector/rector": "^2.1.4" }, "type": "library", "extra": { + "branch-alias": { + "dev-main": "1.7-dev" + }, "composer-normalize": { "indent-size": 2, "indent-style": "space" @@ -323,20 +334,20 @@ "security": "https://github.com/ergebnis/json/blob/main/.github/SECURITY.md", "source": "https://github.com/ergebnis/json" }, - "time": "2024-01-29T15:09:24+00:00" + "time": "2025-09-06T09:08:45+00:00" }, { "name": "ergebnis/json-normalizer", - "version": "4.5.0", + "version": "4.10.1", "source": { "type": "git", "url": "https://github.com/ergebnis/json-normalizer.git", - "reference": "f0ee9e70739f121b27fac8b743e4a52b23de2152" + "reference": "77961faf2c651c3f05977b53c6c68e8434febf62" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ergebnis/json-normalizer/zipball/f0ee9e70739f121b27fac8b743e4a52b23de2152", - "reference": "f0ee9e70739f121b27fac8b743e4a52b23de2152", + "url": "https://api.github.com/repos/ergebnis/json-normalizer/zipball/77961faf2c651c3f05977b53c6c68e8434febf62", + "reference": "77961faf2c651c3f05977b53c6c68e8434febf62", "shasum": "" }, "require": { @@ -345,26 +356,39 @@ "ergebnis/json-printer": "^3.5.0", "ergebnis/json-schema-validator": "^4.2.0", "ext-json": "*", - "justinrainbow/json-schema": "^5.2.12", - "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" + "justinrainbow/json-schema": "^5.2.12 || ^6.0.0", + "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0" }, "require-dev": { - "composer/semver": "^3.4.0", - "ergebnis/data-provider": "^3.2.0", - "ergebnis/license": "^2.4.0", - "ergebnis/php-cs-fixer-config": "^6.20.0", - "ergebnis/phpunit-slow-test-detector": "^2.9.0", - "fakerphp/faker": "^1.23.1", + "composer/semver": "^3.4.3", + "ergebnis/composer-normalize": "^2.44.0", + "ergebnis/data-provider": "^3.3.0", + "ergebnis/license": "^2.5.0", + "ergebnis/php-cs-fixer-config": "^6.37.0", + "ergebnis/phpunit-slow-test-detector": "^2.16.1", + "fakerphp/faker": "^1.24.0", "infection/infection": "~0.26.6", - "phpunit/phpunit": "^9.6.16", - "psalm/plugin-phpunit": "~0.18.4", - "rector/rector": "~0.19.4", - "vimeo/psalm": "^5.20.0" + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^1.12.10", + "phpstan/phpstan-deprecation-rules": "^1.2.1", + "phpstan/phpstan-phpunit": "^1.4.0", + "phpstan/phpstan-strict-rules": "^1.6.1", + "phpunit/phpunit": "^9.6.19", + "rector/rector": "^1.2.10" }, "suggest": { "composer/semver": "If you want to use ComposerJsonNormalizer or VersionConstraintNormalizer" }, "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.11-dev" + }, + "composer-normalize": { + "indent-size": 2, + "indent-style": "space" + } + }, "autoload": { "psr-4": { "Ergebnis\\Json\\Normalizer\\": "src/" @@ -392,39 +416,46 @@ "security": "https://github.com/ergebnis/json-normalizer/blob/main/.github/SECURITY.md", "source": "https://github.com/ergebnis/json-normalizer" }, - "time": "2024-01-30T09:10:15+00:00" + "time": "2025-09-06T09:18:13+00:00" }, { "name": "ergebnis/json-pointer", - "version": "3.4.0", + "version": "3.7.1", "source": { "type": "git", "url": "https://github.com/ergebnis/json-pointer.git", - "reference": "b654757d873050622c2166f55ab25d04685261c5" + "reference": "43bef355184e9542635e35dd2705910a3df4c236" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ergebnis/json-pointer/zipball/b654757d873050622c2166f55ab25d04685261c5", - "reference": "b654757d873050622c2166f55ab25d04685261c5", + "url": "https://api.github.com/repos/ergebnis/json-pointer/zipball/43bef355184e9542635e35dd2705910a3df4c236", + "reference": "43bef355184e9542635e35dd2705910a3df4c236", "shasum": "" }, "require": { - "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" + "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0" }, "require-dev": { + "ergebnis/composer-normalize": "^2.43.0", "ergebnis/data-provider": "^3.2.0", "ergebnis/license": "^2.4.0", - "ergebnis/php-cs-fixer-config": "^6.20.0", - "ergebnis/phpunit-slow-test-detector": "^2.9.0", + "ergebnis/php-cs-fixer-config": "^6.32.0", + "ergebnis/phpunit-slow-test-detector": "^2.15.0", "fakerphp/faker": "^1.23.1", "infection/infection": "~0.26.6", - "phpunit/phpunit": "^9.6.16", - "psalm/plugin-phpunit": "~0.18.4", - "rector/rector": "~0.19.2", - "vimeo/psalm": "^5.20.0" + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^1.12.10", + "phpstan/phpstan-deprecation-rules": "^1.2.1", + "phpstan/phpstan-phpunit": "^1.4.0", + "phpstan/phpstan-strict-rules": "^1.6.1", + "phpunit/phpunit": "^9.6.19", + "rector/rector": "^1.2.10" }, "type": "library", "extra": { + "branch-alias": { + "dev-main": "3.8-dev" + }, "composer-normalize": { "indent-size": 2, "indent-style": "space" @@ -458,40 +489,53 @@ "security": "https://github.com/ergebnis/json-pointer/blob/main/.github/SECURITY.md", "source": "https://github.com/ergebnis/json-pointer" }, - "time": "2024-01-29T16:37:15+00:00" + "time": "2025-09-06T09:28:19+00:00" }, { "name": "ergebnis/json-printer", - "version": "3.5.0", + "version": "3.8.1", "source": { "type": "git", "url": "https://github.com/ergebnis/json-printer.git", - "reference": "549e16fe6de34b8c3aee7b421be12caa552f3ced" + "reference": "211d73fc7ec6daf98568ee6ed6e6d133dee8503e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ergebnis/json-printer/zipball/549e16fe6de34b8c3aee7b421be12caa552f3ced", - "reference": "549e16fe6de34b8c3aee7b421be12caa552f3ced", + "url": "https://api.github.com/repos/ergebnis/json-printer/zipball/211d73fc7ec6daf98568ee6ed6e6d133dee8503e", + "reference": "211d73fc7ec6daf98568ee6ed6e6d133dee8503e", "shasum": "" }, "require": { "ext-json": "*", "ext-mbstring": "*", - "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" + "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0" }, "require-dev": { - "ergebnis/data-provider": "^3.2.0", - "ergebnis/license": "^2.4.0", - "ergebnis/php-cs-fixer-config": "^6.20.0", - "ergebnis/phpunit-slow-test-detector": "^2.9.0", - "fakerphp/faker": "^1.23.1", + "ergebnis/composer-normalize": "^2.44.0", + "ergebnis/data-provider": "^3.3.0", + "ergebnis/license": "^2.5.0", + "ergebnis/php-cs-fixer-config": "^6.37.0", + "ergebnis/phpunit-slow-test-detector": "^2.16.1", + "fakerphp/faker": "^1.24.0", "infection/infection": "~0.26.6", - "phpunit/phpunit": "^9.6.16", - "psalm/plugin-phpunit": "~0.18.4", - "rector/rector": "~0.19.2", - "vimeo/psalm": "^5.20.0" + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^1.12.10", + "phpstan/phpstan-deprecation-rules": "^1.2.1", + "phpstan/phpstan-phpunit": "^1.4.1", + "phpstan/phpstan-strict-rules": "^1.6.1", + "phpunit/phpunit": "^9.6.21", + "rector/rector": "^1.2.10" }, "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.9-dev" + }, + "composer-normalize": { + "indent-size": 2, + "indent-style": "space" + } + }, "autoload": { "psr-4": { "Ergebnis\\Json\\Printer\\": "src/" @@ -520,43 +564,50 @@ "security": "https://github.com/ergebnis/json-printer/blob/main/.github/SECURITY.md", "source": "https://github.com/ergebnis/json-printer" }, - "time": "2024-01-29T15:33:37+00:00" + "time": "2025-09-06T09:59:26+00:00" }, { "name": "ergebnis/json-schema-validator", - "version": "4.2.0", + "version": "4.5.1", "source": { "type": "git", "url": "https://github.com/ergebnis/json-schema-validator.git", - "reference": "10ed514fdc3f9b71f8a92c567afea21a2f6fa1ef" + "reference": "b739527a480a9e3651360ad351ea77e7e9019df2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ergebnis/json-schema-validator/zipball/10ed514fdc3f9b71f8a92c567afea21a2f6fa1ef", - "reference": "10ed514fdc3f9b71f8a92c567afea21a2f6fa1ef", + "url": "https://api.github.com/repos/ergebnis/json-schema-validator/zipball/b739527a480a9e3651360ad351ea77e7e9019df2", + "reference": "b739527a480a9e3651360ad351ea77e7e9019df2", "shasum": "" }, "require": { "ergebnis/json": "^1.2.0", "ergebnis/json-pointer": "^3.4.0", "ext-json": "*", - "justinrainbow/json-schema": "^5.2.12", - "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0" + "justinrainbow/json-schema": "^5.2.12 || ^6.0.0", + "php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0" }, "require-dev": { - "ergebnis/data-provider": "^3.2.0", - "ergebnis/license": "^2.4.0", - "ergebnis/php-cs-fixer-config": "^6.20.0", - "ergebnis/phpunit-slow-test-detector": "^2.9.0", - "fakerphp/faker": "^1.23.1", + "ergebnis/composer-normalize": "^2.44.0", + "ergebnis/data-provider": "^3.3.0", + "ergebnis/license": "^2.5.0", + "ergebnis/php-cs-fixer-config": "^6.37.0", + "ergebnis/phpunit-slow-test-detector": "^2.16.1", + "fakerphp/faker": "^1.24.0", "infection/infection": "~0.26.6", - "phpunit/phpunit": "^9.6.16", - "psalm/plugin-phpunit": "~0.18.4", - "rector/rector": "~0.19.2", - "vimeo/psalm": "^5.20.0" + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^1.12.10", + "phpstan/phpstan-deprecation-rules": "^1.2.1", + "phpstan/phpstan-phpunit": "^1.4.0", + "phpstan/phpstan-strict-rules": "^1.6.1", + "phpunit/phpunit": "^9.6.20", + "rector/rector": "^1.2.10" }, "type": "library", "extra": { + "branch-alias": { + "dev-main": "4.6-dev" + }, "composer-normalize": { "indent-size": 2, "indent-style": "space" @@ -590,34 +641,44 @@ "security": "https://github.com/ergebnis/json-schema-validator/blob/main/.github/SECURITY.md", "source": "https://github.com/ergebnis/json-schema-validator" }, - "time": "2024-01-29T16:50:15+00:00" + "time": "2025-09-06T11:37:35+00:00" }, { "name": "justinrainbow/json-schema", - "version": "5.3.0", + "version": "6.6.0", "source": { "type": "git", "url": "https://github.com/jsonrainbow/json-schema.git", - "reference": "feb2ca6dd1cebdaf1ed60a4c8de2e53ce11c4fd8" + "reference": "68ba7677532803cc0c5900dd5a4d730537f2b2f3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/jsonrainbow/json-schema/zipball/feb2ca6dd1cebdaf1ed60a4c8de2e53ce11c4fd8", - "reference": "feb2ca6dd1cebdaf1ed60a4c8de2e53ce11c4fd8", + "url": "https://api.github.com/repos/jsonrainbow/json-schema/zipball/68ba7677532803cc0c5900dd5a4d730537f2b2f3", + "reference": "68ba7677532803cc0c5900dd5a4d730537f2b2f3", "shasum": "" }, "require": { - "php": ">=7.1" + "ext-json": "*", + "marc-mabe/php-enum": "^4.0", + "php": "^7.2 || ^8.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "~2.2.20||~2.15.1", - "json-schema/json-schema-test-suite": "1.2.0", - "phpunit/phpunit": "^4.8.35" + "friendsofphp/php-cs-fixer": "3.3.0", + "json-schema/json-schema-test-suite": "^23.2", + "marc-mabe/php-enum-phpstan": "^2.0", + "phpspec/prophecy": "^1.19", + "phpstan/phpstan": "^1.12", + "phpunit/phpunit": "^8.5" }, "bin": [ "bin/validate-json" ], "type": "library", + "extra": { + "branch-alias": { + "dev-master": "6.x-dev" + } + }, "autoload": { "psr-4": { "JsonSchema\\": "src/JsonSchema/" @@ -646,29 +707,29 @@ } ], "description": "A library to validate a json schema.", - "homepage": "https://github.com/justinrainbow/json-schema", + "homepage": "https://github.com/jsonrainbow/json-schema", "keywords": [ "json", "schema" ], "support": { "issues": "https://github.com/jsonrainbow/json-schema/issues", - "source": "https://github.com/jsonrainbow/json-schema/tree/5.3.0" + "source": "https://github.com/jsonrainbow/json-schema/tree/6.6.0" }, - "time": "2024-07-06T21:00:26+00:00" + "time": "2025-10-10T11:34:09+00:00" }, { "name": "laravel/pint", - "version": "v1.17.0", + "version": "v1.25.1", "source": { "type": "git", "url": "https://github.com/laravel/pint.git", - "reference": "4dba80c1de4b81dc4c4fb10ea6f4781495eb29f5" + "reference": "5016e263f95d97670d71b9a987bd8996ade6d8d9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/pint/zipball/4dba80c1de4b81dc4c4fb10ea6f4781495eb29f5", - "reference": "4dba80c1de4b81dc4c4fb10ea6f4781495eb29f5", + "url": "https://api.github.com/repos/laravel/pint/zipball/5016e263f95d97670d71b9a987bd8996ade6d8d9", + "reference": "5016e263f95d97670d71b9a987bd8996ade6d8d9", "shasum": "" }, "require": { @@ -676,16 +737,16 @@ "ext-mbstring": "*", "ext-tokenizer": "*", "ext-xml": "*", - "php": "^8.1.0" + "php": "^8.2.0" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^3.59.3", - "illuminate/view": "^10.48.12", - "larastan/larastan": "^2.9.7", - "laravel-zero/framework": "^10.4.0", + "friendsofphp/php-cs-fixer": "^3.87.2", + "illuminate/view": "^11.46.0", + "larastan/larastan": "^3.7.1", + "laravel-zero/framework": "^11.45.0", "mockery/mockery": "^1.6.12", - "nunomaduro/termwind": "^1.15.1", - "pestphp/pest": "^2.34.8" + "nunomaduro/termwind": "^2.3.1", + "pestphp/pest": "^2.36.0" }, "bin": [ "builds/pint" @@ -721,27 +782,27 @@ "issues": "https://github.com/laravel/pint/issues", "source": "https://github.com/laravel/pint" }, - "time": "2024-07-23T16:40:20+00:00" + "time": "2025-09-19T02:57:12+00:00" }, { "name": "localheinz/diff", - "version": "1.1.1", + "version": "1.3.0", "source": { "type": "git", "url": "https://github.com/localheinz/diff.git", - "reference": "851bb20ea8358c86f677f5f111c4ab031b1c764c" + "reference": "33bd840935970cda6691c23fc7d94ae764c0734c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/localheinz/diff/zipball/851bb20ea8358c86f677f5f111c4ab031b1c764c", - "reference": "851bb20ea8358c86f677f5f111c4ab031b1c764c", + "url": "https://api.github.com/repos/localheinz/diff/zipball/33bd840935970cda6691c23fc7d94ae764c0734c", + "reference": "33bd840935970cda6691c23fc7d94ae764c0734c", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0" }, "require-dev": { - "phpunit/phpunit": "^7.5 || ^8.0", + "phpunit/phpunit": "^7.5.0 || ^8.5.23", "symfony/process": "^4.2 || ^5" }, "type": "library", @@ -773,28 +834,96 @@ "unified diff" ], "support": { - "source": "https://github.com/localheinz/diff/tree/main" + "issues": "https://github.com/localheinz/diff/issues", + "source": "https://github.com/localheinz/diff/tree/1.3.0" }, - "funding": [ + "time": "2025-08-30T09:44:18+00:00" + }, + { + "name": "marc-mabe/php-enum", + "version": "v4.7.2", + "source": { + "type": "git", + "url": "https://github.com/marc-mabe/php-enum.git", + "reference": "bb426fcdd65c60fb3638ef741e8782508fda7eef" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/marc-mabe/php-enum/zipball/bb426fcdd65c60fb3638ef741e8782508fda7eef", + "reference": "bb426fcdd65c60fb3638ef741e8782508fda7eef", + "shasum": "" + }, + "require": { + "ext-reflection": "*", + "php": "^7.1 | ^8.0" + }, + "require-dev": { + "phpbench/phpbench": "^0.16.10 || ^1.0.4", + "phpstan/phpstan": "^1.3.1", + "phpunit/phpunit": "^7.5.20 | ^8.5.22 | ^9.5.11", + "vimeo/psalm": "^4.17.0 | ^5.26.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-3.x": "3.2-dev", + "dev-master": "4.7-dev" + } + }, + "autoload": { + "psr-4": { + "MabeEnum\\": "src/" + }, + "classmap": [ + "stubs/Stringable.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ { - "url": "https://github.com/sebastianbergmann", - "type": "github" + "name": "Marc Bennewitz", + "email": "dev@mabe.berlin", + "homepage": "https://mabe.berlin/", + "role": "Lead" } ], - "time": "2020-07-06T04:49:32+00:00" + "description": "Simple and fast implementation of enumerations with native PHP", + "homepage": "https://github.com/marc-mabe/php-enum", + "keywords": [ + "enum", + "enum-map", + "enum-set", + "enumeration", + "enumerator", + "enummap", + "enumset", + "map", + "set", + "type", + "type-hint", + "typehint" + ], + "support": { + "issues": "https://github.com/marc-mabe/php-enum/issues", + "source": "https://github.com/marc-mabe/php-enum/tree/v4.7.2" + }, + "time": "2025-09-14T11:18:39+00:00" }, { "name": "myclabs/deep-copy", - "version": "1.12.0", + "version": "1.13.4", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c" + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", - "reference": "3a6b9a42cd8f8771bd4295d13e1423fa7f3d942c", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/07d290f0c47959fd5eed98c95ee5602db07e0b6a", + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a", "shasum": "" }, "require": { @@ -833,7 +962,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.12.0" + "source": "https://github.com/myclabs/DeepCopy/tree/1.13.4" }, "funding": [ { @@ -841,20 +970,20 @@ "type": "tidelift" } ], - "time": "2024-06-12T14:39:25+00:00" + "time": "2025-08-01T08:46:24+00:00" }, { "name": "nikic/php-parser", - "version": "v5.1.0", + "version": "v5.6.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1" + "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/683130c2ff8c2739f4822ff7ac5c873ec529abd1", - "reference": "683130c2ff8c2739f4822ff7ac5c873ec529abd1", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2", + "reference": "f103601b29efebd7ff4a1ca7b3eeea9e3336a2a2", "shasum": "" }, "require": { @@ -873,7 +1002,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "5.0-dev" + "dev-master": "5.x-dev" } }, "autoload": { @@ -897,9 +1026,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v5.1.0" + "source": "https://github.com/nikic/PHP-Parser/tree/v5.6.1" }, - "time": "2024-07-01T20:03:41+00:00" + "time": "2025-08-13T20:13:15+00:00" }, { "name": "phar-io/manifest", @@ -1021,22 +1150,22 @@ }, { "name": "phpstan/extension-installer", - "version": "1.4.1", + "version": "1.4.3", "source": { "type": "git", "url": "https://github.com/phpstan/extension-installer.git", - "reference": "f6b87faf9fc7978eab2f7919a8760bc9f58f9203" + "reference": "85e90b3942d06b2326fba0403ec24fe912372936" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/extension-installer/zipball/f6b87faf9fc7978eab2f7919a8760bc9f58f9203", - "reference": "f6b87faf9fc7978eab2f7919a8760bc9f58f9203", + "url": "https://api.github.com/repos/phpstan/extension-installer/zipball/85e90b3942d06b2326fba0403ec24fe912372936", + "reference": "85e90b3942d06b2326fba0403ec24fe912372936", "shasum": "" }, "require": { "composer-plugin-api": "^2.0", "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.9.0" + "phpstan/phpstan": "^1.9.0 || ^2.0" }, "require-dev": { "composer/composer": "^2.0", @@ -1057,36 +1186,39 @@ "MIT" ], "description": "Composer plugin for automatic installation of PHPStan extensions", + "keywords": [ + "dev", + "static analysis" + ], "support": { "issues": "https://github.com/phpstan/extension-installer/issues", - "source": "https://github.com/phpstan/extension-installer/tree/1.4.1" + "source": "https://github.com/phpstan/extension-installer/tree/1.4.3" }, - "time": "2024-06-10T08:20:49+00:00" + "time": "2024-09-04T20:21:43+00:00" }, { "name": "phpstan/phpstan-strict-rules", - "version": "1.6.0", + "version": "2.0.7", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-strict-rules.git", - "reference": "363f921dd8441777d4fc137deb99beb486c77df1" + "reference": "d6211c46213d4181054b3d77b10a5c5cb0d59538" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/363f921dd8441777d4fc137deb99beb486c77df1", - "reference": "363f921dd8441777d4fc137deb99beb486c77df1", + "url": "https://api.github.com/repos/phpstan/phpstan-strict-rules/zipball/d6211c46213d4181054b3d77b10a5c5cb0d59538", + "reference": "d6211c46213d4181054b3d77b10a5c5cb0d59538", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.11" + "php": "^7.4 || ^8.0", + "phpstan/phpstan": "^2.1.29" }, "require-dev": { - "nikic/php-parser": "^4.13.0", "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/phpstan-deprecation-rules": "^1.1", - "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^9.5" + "phpstan/phpstan-deprecation-rules": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^9.6" }, "type": "phpstan-extension", "extra": { @@ -1108,35 +1240,35 @@ "description": "Extra strict and opinionated rules for PHPStan", "support": { "issues": "https://github.com/phpstan/phpstan-strict-rules/issues", - "source": "https://github.com/phpstan/phpstan-strict-rules/tree/1.6.0" + "source": "https://github.com/phpstan/phpstan-strict-rules/tree/2.0.7" }, - "time": "2024-04-20T06:37:51+00:00" + "time": "2025-09-26T11:19:08+00:00" }, { "name": "phpstan/phpstan-webmozart-assert", - "version": "1.2.7", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan-webmozart-assert.git", - "reference": "923bd58cc1c8d2bf8e78a8fbca4b224805237dc2" + "reference": "0c641817d2a8f05c7157f92d91986e74d3c8ab0c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan-webmozart-assert/zipball/923bd58cc1c8d2bf8e78a8fbca4b224805237dc2", - "reference": "923bd58cc1c8d2bf8e78a8fbca4b224805237dc2", + "url": "https://api.github.com/repos/phpstan/phpstan-webmozart-assert/zipball/0c641817d2a8f05c7157f92d91986e74d3c8ab0c", + "reference": "0c641817d2a8f05c7157f92d91986e74d3c8ab0c", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.10" + "php": "^7.4 || ^8.0", + "phpstan/phpstan": "^2.0" }, "require-dev": { - "nikic/php-parser": "^4.13.0", + "nikic/php-parser": "^5.1", "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/phpstan-deprecation-rules": "^1.1", - "phpstan/phpstan-phpunit": "^1.0", - "phpstan/phpstan-strict-rules": "^1.0", - "phpunit/phpunit": "^9.5", + "phpstan/phpstan-deprecation-rules": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", + "phpunit/phpunit": "^9.6", "webmozart/assert": "^1.11.0" }, "type": "phpstan-extension", @@ -1159,38 +1291,38 @@ "description": "PHPStan webmozart/assert extension", "support": { "issues": "https://github.com/phpstan/phpstan-webmozart-assert/issues", - "source": "https://github.com/phpstan/phpstan-webmozart-assert/tree/1.2.7" + "source": "https://github.com/phpstan/phpstan-webmozart-assert/tree/2.0.0" }, - "time": "2024-07-05T08:05:21+00:00" + "time": "2024-10-14T03:45:26+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "10.1.15", + "version": "10.1.16", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "5da8b1728acd1e6ffdf2ff32ffbdfd04307f26ae" + "reference": "7e308268858ed6baedc8704a304727d20bc07c77" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/5da8b1728acd1e6ffdf2ff32ffbdfd04307f26ae", - "reference": "5da8b1728acd1e6ffdf2ff32ffbdfd04307f26ae", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/7e308268858ed6baedc8704a304727d20bc07c77", + "reference": "7e308268858ed6baedc8704a304727d20bc07c77", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.18 || ^5.0", + "nikic/php-parser": "^4.19.1 || ^5.1.0", "php": ">=8.1", - "phpunit/php-file-iterator": "^4.0", - "phpunit/php-text-template": "^3.0", - "sebastian/code-unit-reverse-lookup": "^3.0", - "sebastian/complexity": "^3.0", - "sebastian/environment": "^6.0", - "sebastian/lines-of-code": "^2.0", - "sebastian/version": "^4.0", - "theseer/tokenizer": "^1.2.0" + "phpunit/php-file-iterator": "^4.1.0", + "phpunit/php-text-template": "^3.0.1", + "sebastian/code-unit-reverse-lookup": "^3.0.0", + "sebastian/complexity": "^3.2.0", + "sebastian/environment": "^6.1.0", + "sebastian/lines-of-code": "^2.0.2", + "sebastian/version": "^4.0.1", + "theseer/tokenizer": "^1.2.3" }, "require-dev": { "phpunit/phpunit": "^10.1" @@ -1202,7 +1334,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "10.1-dev" + "dev-main": "10.1.x-dev" } }, "autoload": { @@ -1231,7 +1363,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.15" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/10.1.16" }, "funding": [ { @@ -1239,7 +1371,7 @@ "type": "github" } ], - "time": "2024-06-29T08:25:15+00:00" + "time": "2024-08-22T04:31:57+00:00" }, { "name": "phpunit/php-file-iterator", @@ -1486,16 +1618,16 @@ }, { "name": "phpunit/phpunit", - "version": "10.5.28", + "version": "10.5.58", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "ff7fb85cdf88131b83e721fb2a327b664dbed275" + "reference": "e24fb46da450d8e6a5788670513c1af1424f16ca" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/ff7fb85cdf88131b83e721fb2a327b664dbed275", - "reference": "ff7fb85cdf88131b83e721fb2a327b664dbed275", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/e24fb46da450d8e6a5788670513c1af1424f16ca", + "reference": "e24fb46da450d8e6a5788670513c1af1424f16ca", "shasum": "" }, "require": { @@ -1505,24 +1637,24 @@ "ext-mbstring": "*", "ext-xml": "*", "ext-xmlwriter": "*", - "myclabs/deep-copy": "^1.12.0", + "myclabs/deep-copy": "^1.13.4", "phar-io/manifest": "^2.0.4", "phar-io/version": "^3.2.1", "php": ">=8.1", - "phpunit/php-code-coverage": "^10.1.15", + "phpunit/php-code-coverage": "^10.1.16", "phpunit/php-file-iterator": "^4.1.0", "phpunit/php-invoker": "^4.0.0", "phpunit/php-text-template": "^3.0.1", "phpunit/php-timer": "^6.0.0", "sebastian/cli-parser": "^2.0.1", "sebastian/code-unit": "^2.0.0", - "sebastian/comparator": "^5.0.1", + "sebastian/comparator": "^5.0.4", "sebastian/diff": "^5.1.1", "sebastian/environment": "^6.1.0", - "sebastian/exporter": "^5.1.2", + "sebastian/exporter": "^5.1.4", "sebastian/global-state": "^6.0.2", "sebastian/object-enumerator": "^5.0.0", - "sebastian/recursion-context": "^5.0.0", + "sebastian/recursion-context": "^5.0.1", "sebastian/type": "^4.0.0", "sebastian/version": "^4.0.1" }, @@ -1567,7 +1699,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.28" + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.58" }, "funding": [ { @@ -1578,12 +1710,20 @@ "url": "https://github.com/sebastianbergmann", "type": "github" }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, { "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", "type": "tidelift" } ], - "time": "2024-07-18T14:54:16+00:00" + "time": "2025-09-28T12:04:46+00:00" }, { "name": "sebastian/cli-parser", @@ -1755,16 +1895,16 @@ }, { "name": "sebastian/comparator", - "version": "5.0.1", + "version": "5.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "2db5010a484d53ebf536087a70b4a5423c102372" + "reference": "e8e53097718d2b53cfb2aa859b06a41abf58c62e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2db5010a484d53ebf536087a70b4a5423c102372", - "reference": "2db5010a484d53ebf536087a70b4a5423c102372", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/e8e53097718d2b53cfb2aa859b06a41abf58c62e", + "reference": "e8e53097718d2b53cfb2aa859b06a41abf58c62e", "shasum": "" }, "require": { @@ -1775,7 +1915,7 @@ "sebastian/exporter": "^5.0" }, "require-dev": { - "phpunit/phpunit": "^10.3" + "phpunit/phpunit": "^10.5" }, "type": "library", "extra": { @@ -1820,15 +1960,27 @@ "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", "security": "https://github.com/sebastianbergmann/comparator/security/policy", - "source": "https://github.com/sebastianbergmann/comparator/tree/5.0.1" + "source": "https://github.com/sebastianbergmann/comparator/tree/5.0.4" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/comparator", + "type": "tidelift" } ], - "time": "2023-08-14T13:18:12+00:00" + "time": "2025-09-07T05:25:07+00:00" }, { "name": "sebastian/complexity", @@ -2021,16 +2173,16 @@ }, { "name": "sebastian/exporter", - "version": "5.1.2", + "version": "5.1.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "955288482d97c19a372d3f31006ab3f37da47adf" + "reference": "0735b90f4da94969541dac1da743446e276defa6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/955288482d97c19a372d3f31006ab3f37da47adf", - "reference": "955288482d97c19a372d3f31006ab3f37da47adf", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/0735b90f4da94969541dac1da743446e276defa6", + "reference": "0735b90f4da94969541dac1da743446e276defa6", "shasum": "" }, "require": { @@ -2039,7 +2191,7 @@ "sebastian/recursion-context": "^5.0" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^10.5" }, "type": "library", "extra": { @@ -2087,15 +2239,27 @@ "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", "security": "https://github.com/sebastianbergmann/exporter/security/policy", - "source": "https://github.com/sebastianbergmann/exporter/tree/5.1.2" + "source": "https://github.com/sebastianbergmann/exporter/tree/5.1.4" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/exporter", + "type": "tidelift" } ], - "time": "2024-03-02T07:17:12+00:00" + "time": "2025-09-24T06:09:11+00:00" }, { "name": "sebastian/global-state", @@ -2331,23 +2495,23 @@ }, { "name": "sebastian/recursion-context", - "version": "5.0.0", + "version": "5.0.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/recursion-context.git", - "reference": "05909fb5bc7df4c52992396d0116aed689f93712" + "reference": "47e34210757a2f37a97dcd207d032e1b01e64c7a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/05909fb5bc7df4c52992396d0116aed689f93712", - "reference": "05909fb5bc7df4c52992396d0116aed689f93712", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/47e34210757a2f37a97dcd207d032e1b01e64c7a", + "reference": "47e34210757a2f37a97dcd207d032e1b01e64c7a", "shasum": "" }, "require": { "php": ">=8.1" }, "require-dev": { - "phpunit/phpunit": "^10.0" + "phpunit/phpunit": "^10.5" }, "type": "library", "extra": { @@ -2382,15 +2546,28 @@ "homepage": "https://github.com/sebastianbergmann/recursion-context", "support": { "issues": "https://github.com/sebastianbergmann/recursion-context/issues", - "source": "https://github.com/sebastianbergmann/recursion-context/tree/5.0.0" + "security": "https://github.com/sebastianbergmann/recursion-context/security/policy", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/5.0.1" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/recursion-context", + "type": "tidelift" } ], - "time": "2023-02-03T07:05:40+00:00" + "time": "2025-08-10T07:50:56+00:00" }, { "name": "sebastian/type", diff --git a/phpstan.neon b/phpstan.neon index 9a88bf6..a49325a 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -15,3 +15,4 @@ parameters: - '#^Return type \(int\|null\) of method Fsylum\\RectorWordPress\\Rules\\MethodCall\\RemoveMethodCallRector\:\:refactor\(\) should be covariant with return type \(1\|2\|3\|4\|array\\|PhpParser\\Node\|null\) of method Rector\\Contract\\Rector\\RectorInterface\:\:refactor\(\)$#' - '#^Parameter \#1 \$items of class PhpParser\\Node\\Expr\\Array_ constructor expects array\, array\ given\.$#' - '#^Parameter \#1 \$value of static method PhpParser\\BuilderHelpers\:\:normalizeValue\(\) expects array\|bool\|float\|int\|PhpParser\\Node\\Expr\|string\|null, mixed given\.$#' + - '#^Method Fsylum\\RectorWordPress\\Tests\\(.*?)Test\:\:provideCases\(\) return type has no value type specified in iterable type iterable\.$#' diff --git a/pint.json b/pint.json index 1ca227b..f6f8c3f 100644 --- a/pint.json +++ b/pint.json @@ -207,7 +207,7 @@ "phpdoc_summary": true, "phpdoc_tag_casing": true, "phpdoc_tag_type": true, - "phpdoc_to_comment": true, + "phpdoc_to_comment": false, "phpdoc_trim": true, "phpdoc_trim_consecutive_blank_line_separation": true, "phpdoc_types": true, diff --git a/src/Rules/ConstFetch/ConstToFuncCallRector.php b/src/Rules/ConstFetch/ConstToFuncCallRector.php index 742a25e..6079adb 100644 --- a/src/Rules/ConstFetch/ConstToFuncCallRector.php +++ b/src/Rules/ConstFetch/ConstToFuncCallRector.php @@ -19,29 +19,6 @@ final class ConstToFuncCallRector extends AbstractRector implements Configurable */ private array $configuration = []; - public function getRuleDefinition(): RuleDefinition - { - return new RuleDefinition('Changes constants use to function calls', [new ConfiguredCodeSample(<<<'CODE_SAMPLE' - class SomeClass - { - public function run() - { - $value = PHP_SAPI; - } - } - CODE_SAMPLE - , <<<'CODE_SAMPLE' - class SomeClass - { - public function run() - { - $value = php_sapi_name(); - } - } - CODE_SAMPLE - , ['PHP_SAPI' => 'php_sapi_name'])]); - } - public function getNodeTypes(): array { return [ConstFetch::class]; @@ -63,13 +40,37 @@ public function refactor(Node $node): ?Node } /** - * @param array $configuration + * @param array $configuration */ public function configure(array $configuration): void { Assert::allString($configuration); Assert::allString(\array_keys($configuration)); + /** @var array $configuration */ $this->configuration = $configuration; } + + public function getRuleDefinition(): RuleDefinition + { + return new RuleDefinition('Changes constants use to function calls', [new ConfiguredCodeSample(<<<'CODE_SAMPLE' + class SomeClass + { + public function run() + { + $value = PHP_SAPI; + } + } + CODE_SAMPLE + , <<<'CODE_SAMPLE' + class SomeClass + { + public function run() + { + $value = php_sapi_name(); + } + } + CODE_SAMPLE + , ['PHP_SAPI' => 'php_sapi_name'])]); + } } diff --git a/src/Rules/FuncCall/ParameterAdderRector.php b/src/Rules/FuncCall/ParameterAdderRector.php index 013042b..8c4e3b3 100644 --- a/src/Rules/FuncCall/ParameterAdderRector.php +++ b/src/Rules/FuncCall/ParameterAdderRector.php @@ -38,6 +38,8 @@ public function refactor(Node $node): ?Node } $position = $config->getPosition(); + + /** @phpstan-ignore argument.type */ $arg = new Arg(BuilderHelpers::normalizeValue($config->getValue())); if (isset($node->args[$position])) { @@ -56,12 +58,14 @@ public function refactor(Node $node): ?Node } /** - * @param array $configuration + * @param array $configuration */ public function configure(array $configuration): void { + // @phpstan-ignore argument.type Assert::allIsAOf($configuration, FunctionParameterAdder::class); + // @var array $configuration $this->configuration = $configuration; } diff --git a/src/Rules/FuncCall/ParameterPrependerRector.php b/src/Rules/FuncCall/ParameterPrependerRector.php index 3b449ac..5b37a30 100644 --- a/src/Rules/FuncCall/ParameterPrependerRector.php +++ b/src/Rules/FuncCall/ParameterPrependerRector.php @@ -37,6 +37,7 @@ public function refactor(Node $node): ?Node continue; } + /** @phpstan-ignore argument.type */ $arg = new Arg(BuilderHelpers::normalizeValue($config->getValue())); $args = $node->args; @@ -55,12 +56,14 @@ public function refactor(Node $node): ?Node } /** - * @param array $configuration + * @param array $configuration */ public function configure(array $configuration): void { + // @phpstan-ignore argument.type Assert::allIsAOf($configuration, FunctionParameterPrepender::class); + // @var array $configuration $this->configuration = $configuration; } diff --git a/src/Rules/FuncCall/ReturnFirstArgumentRector.php b/src/Rules/FuncCall/ReturnFirstArgumentRector.php index cecdb6b..abbd31f 100644 --- a/src/Rules/FuncCall/ReturnFirstArgumentRector.php +++ b/src/Rules/FuncCall/ReturnFirstArgumentRector.php @@ -2,6 +2,7 @@ namespace Fsylum\RectorWordPress\Rules\FuncCall; +use PhpParser\Node\Arg; use PhpParser\Node\Expr\FuncCall; use PhpParser\Node; use Rector\Contract\Rector\ConfigurableRectorInterface; @@ -36,14 +37,20 @@ public function refactor(Node $node): ?Node continue; } - return $node->args[0]; + $firstArg = $node->args[0]; + + if (!$firstArg instanceof Arg) { + return null; + } + + return $firstArg->value; } return null; } /** - * @param array $configuration + * @param array $configuration */ public function configure(array $configuration): void { diff --git a/src/Rules/MethodCall/ParameterAdderRector.php b/src/Rules/MethodCall/ParameterAdderRector.php index d4478fb..fac418b 100644 --- a/src/Rules/MethodCall/ParameterAdderRector.php +++ b/src/Rules/MethodCall/ParameterAdderRector.php @@ -43,6 +43,8 @@ public function refactor(Node $node): ?Node } $position = $config->getPosition(); + + /** @phpstan-ignore argument.type */ $arg = new Arg(BuilderHelpers::normalizeValue($config->getValue())); if ($node instanceof StaticCall) { @@ -82,12 +84,14 @@ private function processMethodCall(MethodCall $methodCall, int $position, Arg $a } /** - * @param array $configuration + * @param array $configuration */ public function configure(array $configuration): void { + // @phpstan-ignore argument.type Assert::allIsAOf($configuration, MethodParameterAdder::class); + // @var array $configuration $this->configuration = $configuration; } diff --git a/src/Rules/MethodCall/RemoveMethodCallRector.php b/src/Rules/MethodCall/RemoveMethodCallRector.php index d063fb2..fd0f5d8 100644 --- a/src/Rules/MethodCall/RemoveMethodCallRector.php +++ b/src/Rules/MethodCall/RemoveMethodCallRector.php @@ -5,7 +5,7 @@ use PhpParser\Node\Stmt\Expression; use PhpParser\Node; use PhpParser\Node\Expr\MethodCall; -use PhpParser\NodeTraverser; +use PhpParser\NodeVisitor; use PHPStan\Type\ObjectType; use Rector\Contract\Rector\ConfigurableRectorInterface; use Rector\Rector\AbstractRector; @@ -45,20 +45,21 @@ public function refactor(Node $node): ?int continue; } - return NodeTraverser::REMOVE_NODE; + return NodeVisitor::REMOVE_NODE; } return null; } /** - * @param array $configuration + * @param array $configuration */ public function configure(array $configuration): void { Assert::allString(array_values($configuration)); Assert::allString($configuration); + /** @var array $configuration */ $this->configuration = $configuration; } diff --git a/src/Rules/MethodCall/ReturnFirstArgumentRector.php b/src/Rules/MethodCall/ReturnFirstArgumentRector.php index 4c45a09..ce88837 100644 --- a/src/Rules/MethodCall/ReturnFirstArgumentRector.php +++ b/src/Rules/MethodCall/ReturnFirstArgumentRector.php @@ -5,7 +5,6 @@ use PhpParser\Node\Arg; use PhpParser\Node\Expr\MethodCall; use PhpParser\Node; -use PhpParser\Node\VariadicPlaceholder; use PHPStan\Type\ObjectType; use Rector\Contract\Rector\ConfigurableRectorInterface; use Rector\Rector\AbstractRector; @@ -28,7 +27,7 @@ public function getNodeTypes(): array /** * @param MethodCall $node */ - public function refactor(Node $node): null|Arg|VariadicPlaceholder + public function refactor(Node $node): ?Node { if (count($node->args) === 0) { return null; @@ -43,20 +42,27 @@ public function refactor(Node $node): null|Arg|VariadicPlaceholder continue; } - return $node->args[0]; + $firstArg = $node->args[0]; + + if (!$firstArg instanceof Arg) { + return null; + } + + return $firstArg->value; } return null; } /** - * @param array $configuration + * @param array $configuration */ public function configure(array $configuration): void { Assert::allString(array_values($configuration)); Assert::allString($configuration); + /** @var array $configuration */ $this->configuration = $configuration; } diff --git a/src/Set/WordPressLevelSetList.php b/src/Set/WordPressLevelSetList.php index ef5c8bd..3db04c9 100644 --- a/src/Set/WordPressLevelSetList.php +++ b/src/Set/WordPressLevelSetList.php @@ -2,9 +2,7 @@ namespace Fsylum\RectorWordPress\Set; -use Rector\Set\Contract\SetListInterface; - -final class WordPressLevelSetList implements SetListInterface +final class WordPressLevelSetList { public const UP_TO_WP_0_71 = __DIR__ . '/../../config/sets/level/up-to-wp-0.71.php'; public const UP_TO_WP_1_0 = __DIR__ . '/../../config/sets/level/up-to-wp-1.0.php'; diff --git a/src/Set/WordPressSetList.php b/src/Set/WordPressSetList.php index 3edb76f..bacb6f9 100644 --- a/src/Set/WordPressSetList.php +++ b/src/Set/WordPressSetList.php @@ -2,9 +2,7 @@ namespace Fsylum\RectorWordPress\Set; -use Rector\Set\Contract\SetListInterface; - -final class WordPressSetList implements SetListInterface +final class WordPressSetList { public const WP_0_71 = __DIR__ . '/../../config/sets/wp-0.71.php'; public const WP_1_0 = __DIR__ . '/../../config/sets/wp-1.0.php'; diff --git a/tests/Rector/Rules/ConstFetch/ConstToFuncCallRector/ConstToFuncCallRectorTest.php b/tests/Rector/Rules/ConstFetch/ConstToFuncCallRector/ConstToFuncCallRectorTest.php index 49b757c..98ebc19 100644 --- a/tests/Rector/Rules/ConstFetch/ConstToFuncCallRector/ConstToFuncCallRectorTest.php +++ b/tests/Rector/Rules/ConstFetch/ConstToFuncCallRector/ConstToFuncCallRectorTest.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Rules\ConstFetch\ConstToFuncCallRector; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class ConstToFuncCallRectorTest extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Rules/Deprecated/Functions/TheEditorRector/TheEditorRectorTest.php b/tests/Rector/Rules/Deprecated/Functions/TheEditorRector/TheEditorRectorTest.php index 9ab8276..308ec57 100644 --- a/tests/Rector/Rules/Deprecated/Functions/TheEditorRector/TheEditorRectorTest.php +++ b/tests/Rector/Rules/Deprecated/Functions/TheEditorRector/TheEditorRectorTest.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Rules\Deprecated\Functions\TheEditorRector; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class TheEditorRectorTest extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Rules/Deprecated/Functions/WpKsesJsEntitiesRector/WpKsesJsEntitiesRectorTest.php b/tests/Rector/Rules/Deprecated/Functions/WpKsesJsEntitiesRector/WpKsesJsEntitiesRectorTest.php index d12ae3d..a01377c 100644 --- a/tests/Rector/Rules/Deprecated/Functions/WpKsesJsEntitiesRector/WpKsesJsEntitiesRectorTest.php +++ b/tests/Rector/Rules/Deprecated/Functions/WpKsesJsEntitiesRector/WpKsesJsEntitiesRectorTest.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Rules\Deprecated\Functions\WpKsesJsEntitiesRector; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class WpKsesJsEntitiesRectorTest extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Rules/FuncCall/ParameterAdderRector/ParameterAdderRectorTest.php b/tests/Rector/Rules/FuncCall/ParameterAdderRector/ParameterAdderRectorTest.php index 5c1a735..d64d94b 100644 --- a/tests/Rector/Rules/FuncCall/ParameterAdderRector/ParameterAdderRectorTest.php +++ b/tests/Rector/Rules/FuncCall/ParameterAdderRector/ParameterAdderRectorTest.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Rules\FuncCall\ParameterAdderRector; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class ParameterAdderRectorTest extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Rules/FuncCall/ParameterPrependerRector/ParameterPrependerRectorTest.php b/tests/Rector/Rules/FuncCall/ParameterPrependerRector/ParameterPrependerRectorTest.php index 042507b..c6906a3 100644 --- a/tests/Rector/Rules/FuncCall/ParameterPrependerRector/ParameterPrependerRectorTest.php +++ b/tests/Rector/Rules/FuncCall/ParameterPrependerRector/ParameterPrependerRectorTest.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Rules\FuncCall\ParameterPrependerRector; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class ParameterPrependerRectorTest extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Rules/FuncCall/ReturnFirstArgumentRector/ReturnFirstArgumentRectorTest.php b/tests/Rector/Rules/FuncCall/ReturnFirstArgumentRector/ReturnFirstArgumentRectorTest.php index 0983b88..f23dd34 100644 --- a/tests/Rector/Rules/FuncCall/ReturnFirstArgumentRector/ReturnFirstArgumentRectorTest.php +++ b/tests/Rector/Rules/FuncCall/ReturnFirstArgumentRector/ReturnFirstArgumentRectorTest.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Rules\FuncCall\ReturnFirstArgumentRector; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class ReturnFirstArgumentRectorTest extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Rules/MethodCall/ParameterAdderRector/ParameterAdderRectorTest.php b/tests/Rector/Rules/MethodCall/ParameterAdderRector/ParameterAdderRectorTest.php index 7bf1b84..06419a8 100644 --- a/tests/Rector/Rules/MethodCall/ParameterAdderRector/ParameterAdderRectorTest.php +++ b/tests/Rector/Rules/MethodCall/ParameterAdderRector/ParameterAdderRectorTest.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Rules\MethodCall\ParameterAdderRector; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class ParameterAdderRectorTest extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Rules/MethodCall/RemoveMethodCallRector/RemoveMethodCallRectorTest.php b/tests/Rector/Rules/MethodCall/RemoveMethodCallRector/RemoveMethodCallRectorTest.php index 4bcb521..c120f3a 100644 --- a/tests/Rector/Rules/MethodCall/RemoveMethodCallRector/RemoveMethodCallRectorTest.php +++ b/tests/Rector/Rules/MethodCall/RemoveMethodCallRector/RemoveMethodCallRectorTest.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Rules\MethodCall\RemoveMethodCallRector; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class RemoveMethodCallRectorTest extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Rules/MethodCall/ReturnFirstArgumentRector/ReturnFirstArgumentRectorTest.php b/tests/Rector/Rules/MethodCall/ReturnFirstArgumentRector/ReturnFirstArgumentRectorTest.php index f57ccc7..6a03e1a 100644 --- a/tests/Rector/Rules/MethodCall/ReturnFirstArgumentRector/ReturnFirstArgumentRectorTest.php +++ b/tests/Rector/Rules/MethodCall/ReturnFirstArgumentRector/ReturnFirstArgumentRectorTest.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Rules\MethodCall\ReturnFirstArgumentRector; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class ReturnFirstArgumentRectorTest extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Level/UpToWp68/UpToWp68Test.php b/tests/Rector/Sets/Level/UpToWp68/UpToWp68Test.php index 20fd16c..201cad8 100644 --- a/tests/Rector/Sets/Level/UpToWp68/UpToWp68Test.php +++ b/tests/Rector/Sets/Level/UpToWp68/UpToWp68Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Level\UpToWp68; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class UpToWp68Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp071/Wp071Test.php b/tests/Rector/Sets/Wp071/Wp071Test.php index 8a7b886..0eb2913 100644 --- a/tests/Rector/Sets/Wp071/Wp071Test.php +++ b/tests/Rector/Sets/Wp071/Wp071Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp071; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp071Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp10/Wp10Test.php b/tests/Rector/Sets/Wp10/Wp10Test.php index bb9c324..cf52779 100644 --- a/tests/Rector/Sets/Wp10/Wp10Test.php +++ b/tests/Rector/Sets/Wp10/Wp10Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp10; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp10Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp12/Wp12Test.php b/tests/Rector/Sets/Wp12/Wp12Test.php index fe4f17b..b9f83ab 100644 --- a/tests/Rector/Sets/Wp12/Wp12Test.php +++ b/tests/Rector/Sets/Wp12/Wp12Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp12; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp12Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp15/Wp15Test.php b/tests/Rector/Sets/Wp15/Wp15Test.php index f769087..cd38245 100644 --- a/tests/Rector/Sets/Wp15/Wp15Test.php +++ b/tests/Rector/Sets/Wp15/Wp15Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp15; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp15Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp20/Wp20Test.php b/tests/Rector/Sets/Wp20/Wp20Test.php index 62f38b7..ec20672 100644 --- a/tests/Rector/Sets/Wp20/Wp20Test.php +++ b/tests/Rector/Sets/Wp20/Wp20Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp20; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp20Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp21/Wp21Test.php b/tests/Rector/Sets/Wp21/Wp21Test.php index c01fb36..db15980 100644 --- a/tests/Rector/Sets/Wp21/Wp21Test.php +++ b/tests/Rector/Sets/Wp21/Wp21Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp21; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp21Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp22/Wp22Test.php b/tests/Rector/Sets/Wp22/Wp22Test.php index 35c9dbd..a07f90d 100644 --- a/tests/Rector/Sets/Wp22/Wp22Test.php +++ b/tests/Rector/Sets/Wp22/Wp22Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp22; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp22Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp23/Wp23Test.php b/tests/Rector/Sets/Wp23/Wp23Test.php index 2889fec..8e4f288 100644 --- a/tests/Rector/Sets/Wp23/Wp23Test.php +++ b/tests/Rector/Sets/Wp23/Wp23Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp23; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp23Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp25/Wp25Test.php b/tests/Rector/Sets/Wp25/Wp25Test.php index e3ae423..5192691 100644 --- a/tests/Rector/Sets/Wp25/Wp25Test.php +++ b/tests/Rector/Sets/Wp25/Wp25Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp25; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp25Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp26/Wp26Test.php b/tests/Rector/Sets/Wp26/Wp26Test.php index 1fbb33e..6aad520 100644 --- a/tests/Rector/Sets/Wp26/Wp26Test.php +++ b/tests/Rector/Sets/Wp26/Wp26Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp26; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp26Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp27/Wp27Test.php b/tests/Rector/Sets/Wp27/Wp27Test.php index 8e796e2..05d7871 100644 --- a/tests/Rector/Sets/Wp27/Wp27Test.php +++ b/tests/Rector/Sets/Wp27/Wp27Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp27; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp27Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp28/Wp28Test.php b/tests/Rector/Sets/Wp28/Wp28Test.php index 16af73d..7bc5eb6 100644 --- a/tests/Rector/Sets/Wp28/Wp28Test.php +++ b/tests/Rector/Sets/Wp28/Wp28Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp28; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp28Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp29/Wp29Test.php b/tests/Rector/Sets/Wp29/Wp29Test.php index b8ef31b..5244882 100644 --- a/tests/Rector/Sets/Wp29/Wp29Test.php +++ b/tests/Rector/Sets/Wp29/Wp29Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp29; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp29Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp30/Wp30Test.php b/tests/Rector/Sets/Wp30/Wp30Test.php index 017bcab..13725f0 100644 --- a/tests/Rector/Sets/Wp30/Wp30Test.php +++ b/tests/Rector/Sets/Wp30/Wp30Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp30; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp30Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp31/Wp31Test.php b/tests/Rector/Sets/Wp31/Wp31Test.php index 29a402b..5cd09c6 100644 --- a/tests/Rector/Sets/Wp31/Wp31Test.php +++ b/tests/Rector/Sets/Wp31/Wp31Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp31; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp31Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp32/Wp32Test.php b/tests/Rector/Sets/Wp32/Wp32Test.php index 3b6c646..7e14cb2 100644 --- a/tests/Rector/Sets/Wp32/Wp32Test.php +++ b/tests/Rector/Sets/Wp32/Wp32Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp32; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp32Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp33/Wp33Test.php b/tests/Rector/Sets/Wp33/Wp33Test.php index 74bec5e..b894fe0 100644 --- a/tests/Rector/Sets/Wp33/Wp33Test.php +++ b/tests/Rector/Sets/Wp33/Wp33Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp33; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp33Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp34/Wp34Test.php b/tests/Rector/Sets/Wp34/Wp34Test.php index f22d12a..fdda2fb 100644 --- a/tests/Rector/Sets/Wp34/Wp34Test.php +++ b/tests/Rector/Sets/Wp34/Wp34Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp34; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp34Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp35/Wp35Test.php b/tests/Rector/Sets/Wp35/Wp35Test.php index 953f7b8..01e9079 100644 --- a/tests/Rector/Sets/Wp35/Wp35Test.php +++ b/tests/Rector/Sets/Wp35/Wp35Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp35; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp35Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp36/Wp36Test.php b/tests/Rector/Sets/Wp36/Wp36Test.php index 36f7c1d..1c146de 100644 --- a/tests/Rector/Sets/Wp36/Wp36Test.php +++ b/tests/Rector/Sets/Wp36/Wp36Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp36; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp36Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp37/Wp37Test.php b/tests/Rector/Sets/Wp37/Wp37Test.php index 5a226c2..01a3b99 100644 --- a/tests/Rector/Sets/Wp37/Wp37Test.php +++ b/tests/Rector/Sets/Wp37/Wp37Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp37; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp37Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp38/Wp38Test.php b/tests/Rector/Sets/Wp38/Wp38Test.php index 4db7e35..1e26cec 100644 --- a/tests/Rector/Sets/Wp38/Wp38Test.php +++ b/tests/Rector/Sets/Wp38/Wp38Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp38; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp38Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp39/Wp39Test.php b/tests/Rector/Sets/Wp39/Wp39Test.php index 7dbddbd..31158db 100644 --- a/tests/Rector/Sets/Wp39/Wp39Test.php +++ b/tests/Rector/Sets/Wp39/Wp39Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp39; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp39Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp40/Wp40Test.php b/tests/Rector/Sets/Wp40/Wp40Test.php index a223a99..4836006 100644 --- a/tests/Rector/Sets/Wp40/Wp40Test.php +++ b/tests/Rector/Sets/Wp40/Wp40Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp40; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp40Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp41/Wp41Test.php b/tests/Rector/Sets/Wp41/Wp41Test.php index 4fb12c2..e1f7c9a 100644 --- a/tests/Rector/Sets/Wp41/Wp41Test.php +++ b/tests/Rector/Sets/Wp41/Wp41Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp41; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp41Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp42/Wp42Test.php b/tests/Rector/Sets/Wp42/Wp42Test.php index 7001fbd..90b3082 100644 --- a/tests/Rector/Sets/Wp42/Wp42Test.php +++ b/tests/Rector/Sets/Wp42/Wp42Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp42; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp42Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp43/Wp43Test.php b/tests/Rector/Sets/Wp43/Wp43Test.php index 0ff5910..1e99e20 100644 --- a/tests/Rector/Sets/Wp43/Wp43Test.php +++ b/tests/Rector/Sets/Wp43/Wp43Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp43; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp43Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp44/Wp44Test.php b/tests/Rector/Sets/Wp44/Wp44Test.php index 953d2d7..56674c5 100644 --- a/tests/Rector/Sets/Wp44/Wp44Test.php +++ b/tests/Rector/Sets/Wp44/Wp44Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp44; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp44Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp45/Wp45Test.php b/tests/Rector/Sets/Wp45/Wp45Test.php index 2ca879a..e6aa246 100644 --- a/tests/Rector/Sets/Wp45/Wp45Test.php +++ b/tests/Rector/Sets/Wp45/Wp45Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp45; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp45Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp46/Wp46Test.php b/tests/Rector/Sets/Wp46/Wp46Test.php index 2f3ea58..485dc55 100644 --- a/tests/Rector/Sets/Wp46/Wp46Test.php +++ b/tests/Rector/Sets/Wp46/Wp46Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp46; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp46Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp47/Wp47Test.php b/tests/Rector/Sets/Wp47/Wp47Test.php index a3247ee..386320f 100644 --- a/tests/Rector/Sets/Wp47/Wp47Test.php +++ b/tests/Rector/Sets/Wp47/Wp47Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp47; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp47Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp48/Wp48Test.php b/tests/Rector/Sets/Wp48/Wp48Test.php index 46accbc..bc2ea42 100644 --- a/tests/Rector/Sets/Wp48/Wp48Test.php +++ b/tests/Rector/Sets/Wp48/Wp48Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp48; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp48Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp49/Wp49Test.php b/tests/Rector/Sets/Wp49/Wp49Test.php index 1119236..5692946 100644 --- a/tests/Rector/Sets/Wp49/Wp49Test.php +++ b/tests/Rector/Sets/Wp49/Wp49Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp49; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp49Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp50/Wp50Test.php b/tests/Rector/Sets/Wp50/Wp50Test.php index f92f2ae..b4af6a7 100644 --- a/tests/Rector/Sets/Wp50/Wp50Test.php +++ b/tests/Rector/Sets/Wp50/Wp50Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp50; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp50Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp51/Wp51Test.php b/tests/Rector/Sets/Wp51/Wp51Test.php index c8d0d9a..24b5dd4 100644 --- a/tests/Rector/Sets/Wp51/Wp51Test.php +++ b/tests/Rector/Sets/Wp51/Wp51Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp51; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp51Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp52/Wp52Test.php b/tests/Rector/Sets/Wp52/Wp52Test.php index f1cda76..26989a5 100644 --- a/tests/Rector/Sets/Wp52/Wp52Test.php +++ b/tests/Rector/Sets/Wp52/Wp52Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp52; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp52Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp53/Wp53Test.php b/tests/Rector/Sets/Wp53/Wp53Test.php index ed69b9a..341922d 100644 --- a/tests/Rector/Sets/Wp53/Wp53Test.php +++ b/tests/Rector/Sets/Wp53/Wp53Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp53; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp53Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp54/Wp54Test.php b/tests/Rector/Sets/Wp54/Wp54Test.php index 97bf7c1..34e0a00 100644 --- a/tests/Rector/Sets/Wp54/Wp54Test.php +++ b/tests/Rector/Sets/Wp54/Wp54Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp54; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp54Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp55/Wp55Test.php b/tests/Rector/Sets/Wp55/Wp55Test.php index 16a0c7b..f967c91 100644 --- a/tests/Rector/Sets/Wp55/Wp55Test.php +++ b/tests/Rector/Sets/Wp55/Wp55Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp55; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp55Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp56/Wp56Test.php b/tests/Rector/Sets/Wp56/Wp56Test.php index e4a06ff..aa19bca 100644 --- a/tests/Rector/Sets/Wp56/Wp56Test.php +++ b/tests/Rector/Sets/Wp56/Wp56Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp56; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp56Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp57/Wp57Test.php b/tests/Rector/Sets/Wp57/Wp57Test.php index 98d60ff..992df38 100644 --- a/tests/Rector/Sets/Wp57/Wp57Test.php +++ b/tests/Rector/Sets/Wp57/Wp57Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp57; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp57Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp58/Wp58Test.php b/tests/Rector/Sets/Wp58/Wp58Test.php index b048b2d..c7e2dfb 100644 --- a/tests/Rector/Sets/Wp58/Wp58Test.php +++ b/tests/Rector/Sets/Wp58/Wp58Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp58; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp58Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp59/Wp59Test.php b/tests/Rector/Sets/Wp59/Wp59Test.php index cbf609c..69879c2 100644 --- a/tests/Rector/Sets/Wp59/Wp59Test.php +++ b/tests/Rector/Sets/Wp59/Wp59Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp59; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp59Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp60/Wp60Test.php b/tests/Rector/Sets/Wp60/Wp60Test.php index 9a09530..6a5b269 100644 --- a/tests/Rector/Sets/Wp60/Wp60Test.php +++ b/tests/Rector/Sets/Wp60/Wp60Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp60; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp60Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp61/Wp61Test.php b/tests/Rector/Sets/Wp61/Wp61Test.php index 9000720..95ccd2d 100644 --- a/tests/Rector/Sets/Wp61/Wp61Test.php +++ b/tests/Rector/Sets/Wp61/Wp61Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp61; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp61Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp62/Wp62Test.php b/tests/Rector/Sets/Wp62/Wp62Test.php index 7ded5c4..f699745 100644 --- a/tests/Rector/Sets/Wp62/Wp62Test.php +++ b/tests/Rector/Sets/Wp62/Wp62Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp62; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp62Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp63/Wp63Test.php b/tests/Rector/Sets/Wp63/Wp63Test.php index b8219c8..5c4e67e 100644 --- a/tests/Rector/Sets/Wp63/Wp63Test.php +++ b/tests/Rector/Sets/Wp63/Wp63Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp63; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp63Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp64/Wp64Test.php b/tests/Rector/Sets/Wp64/Wp64Test.php index 2635b01..a9222a0 100644 --- a/tests/Rector/Sets/Wp64/Wp64Test.php +++ b/tests/Rector/Sets/Wp64/Wp64Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp64; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp64Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp65/Wp65Test.php b/tests/Rector/Sets/Wp65/Wp65Test.php index c4acfde..6b7a0b9 100644 --- a/tests/Rector/Sets/Wp65/Wp65Test.php +++ b/tests/Rector/Sets/Wp65/Wp65Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp65; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp65Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp66/Wp66Test.php b/tests/Rector/Sets/Wp66/Wp66Test.php index dfcb137..f62b493 100644 --- a/tests/Rector/Sets/Wp66/Wp66Test.php +++ b/tests/Rector/Sets/Wp66/Wp66Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp66; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp66Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp67/Wp67Test.php b/tests/Rector/Sets/Wp67/Wp67Test.php index 2b00a0d..577e115 100644 --- a/tests/Rector/Sets/Wp67/Wp67Test.php +++ b/tests/Rector/Sets/Wp67/Wp67Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp67; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp67Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } diff --git a/tests/Rector/Sets/Wp68/Wp68Test.php b/tests/Rector/Sets/Wp68/Wp68Test.php index 1fa4ed3..c5156c0 100644 --- a/tests/Rector/Sets/Wp68/Wp68Test.php +++ b/tests/Rector/Sets/Wp68/Wp68Test.php @@ -2,7 +2,6 @@ namespace Fsylum\RectorWordPress\Tests\Rector\Sets\Wp68; -use Iterator; use PHPUnit\Framework\Attributes\DataProvider; use Rector\Testing\PHPUnit\AbstractRectorTestCase; @@ -11,13 +10,13 @@ */ final class Wp68Test extends AbstractRectorTestCase { - #[DataProvider('provideData')] + #[DataProvider('provideCases')] public function test(string $filePath): void { $this->doTestFile($filePath); } - public static function provideData(): Iterator + public static function provideCases(): iterable { return self::yieldFilesFromDirectory(__DIR__); } From 50efcb2010a95302f4a30d4f0b5b476e66e6a072 Mon Sep 17 00:00:00 2001 From: Firdaus Zahari Date: Mon, 5 Jan 2026 21:16:00 +0800 Subject: [PATCH 2/3] CI trigger reset From 5b16b157574160c519abe0175b0f89cbcc2d1178 Mon Sep 17 00:00:00 2001 From: Firdaus Zahari Date: Mon, 5 Jan 2026 21:17:55 +0800 Subject: [PATCH 3/3] Update composer lock --- composer.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.lock b/composer.lock index 909aad7..0aeb6f2 100644 --- a/composer.lock +++ b/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": "03df9e8a2b562000653856854c224090", + "content-hash": "c9b09190d87c9113d8776043e61e96d5", "packages": [ { "name": "phpstan/phpstan",