From 8debf03f05922963b0d44bfd3738f78463f4839d Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Thu, 25 Jan 2024 17:18:07 +0000 Subject: [PATCH] Updated Rector to commit 5b23ffe923e57d49b92156c15725ac63cb52a9b5 https://github.com/rectorphp/rector-src/commit/5b23ffe923e57d49b92156c15725ac63cb52a9b5 custom copy path fix (#5502) --- src/Application/VersionResolver.php | 4 +-- .../tests/Rector/__Name__/__Name__Test.php | 27 +++++++++++++++++++ vendor/scoper-autoload.php | 2 +- 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 templates/custom-rule/utils/rector/tests/Rector/__Name__/__Name__Test.php diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 12e2678d704..1ba6591a496 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '174656a5f9719dba126a0f5ed68743c05ff53f3b'; + public const PACKAGE_VERSION = '5b23ffe923e57d49b92156c15725ac63cb52a9b5'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-01-25 08:16:35'; + public const RELEASE_DATE = '2024-01-25 18:15:33'; /** * @var int */ diff --git a/templates/custom-rule/utils/rector/tests/Rector/__Name__/__Name__Test.php b/templates/custom-rule/utils/rector/tests/Rector/__Name__/__Name__Test.php new file mode 100644 index 00000000000..069eca67eb6 --- /dev/null +++ b/templates/custom-rule/utils/rector/tests/Rector/__Name__/__Name__Test.php @@ -0,0 +1,27 @@ +doTestFile($filePath); + } + + public static function provideData(): \Iterator + { + return self::yieldFilesFromDirectory(__DIR__ . '/Fixture'); + } + + public function provideConfigFilePath(): string + { + return __DIR__ . '/config/configured_rule.php'; + } +} diff --git a/vendor/scoper-autoload.php b/vendor/scoper-autoload.php index 7e6eeab05ab..f5863022c9a 100644 --- a/vendor/scoper-autoload.php +++ b/vendor/scoper-autoload.php @@ -14,7 +14,7 @@ $loader = (static function () { // Restore the backup and ensure the excluded files are properly marked as loaded $GLOBALS['__composer_autoload_files'] = \array_merge( $existingComposerAutoloadFiles, - \array_fill_keys(['0e6d7bf4a5811bfa5cf40c5ccd6fae6a', '5928a00fa978807cf85d90ec3f4b0147'], true) + \array_fill_keys(['5928a00fa978807cf85d90ec3f4b0147', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a'], true) ); return $loader;