From 44c8e9ed71d6517463305e449b6bb30c4ab4f0b8 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 27 Jan 2025 18:43:31 +0000 Subject: [PATCH] Updated Rector to commit 03936151bbb69f0d841d6bdd57d4602c257375d1 https://github.com/rectorphp/rector-src/commit/03936151bbb69f0d841d6bdd57d4602c257375d1 exclude functions from scoping --- src/Application/VersionResolver.php | 4 ++-- src/functions/node_helper.php | 29 ++++++++++++++++++----------- vendor/scoper-autoload.php | 2 +- 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 586d4a64ba2..570772feea2 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 = 'abaf47c828502d09a968590292aafe71d34e3e17'; + public const PACKAGE_VERSION = '03936151bbb69f0d841d6bdd57d4602c257375d1'; /** * @api * @var string */ - public const RELEASE_DATE = '2025-01-27 09:32:19'; + public const RELEASE_DATE = '2025-01-27 19:40:47'; /** * @var int */ diff --git a/src/functions/node_helper.php b/src/functions/node_helper.php index a397637f4bd..cfe2eaadb2e 100644 --- a/src/functions/node_helper.php +++ b/src/functions/node_helper.php @@ -1,39 +1,46 @@ prettyPrint([$node]); - \var_dump($printedContent); + var_dump($printedContent); } } } -if (!\function_exists('dump_node')) { + +if (! function_exists('dump_node')) { /** * @param Node|Node[] $node */ - function dump_node($node) : void + function dump_node($node): void { - $symfonyStyle = Container::getInstance()->make(SymfonyStyleFactory::class)->create(); + $symfonyStyle = Container::getInstance() + ->make(SymfonyStyleFactory::class) + ->create(); + // we turn up the verbosity so it's visible in tests overriding the // default which is to be quite during tests $symfonyStyle->setVerbosity(OutputInterface::VERBOSITY_VERBOSE); $symfonyStyle->newLine(); + $nodePrinter = new NodePrinter($symfonyStyle); $nodePrinter->printNodes($node); } diff --git a/vendor/scoper-autoload.php b/vendor/scoper-autoload.php index 0d65068ceec..affe96242bd 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(['5928a00fa978807cf85d90ec3f4b0147', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a'], true) + \array_fill_keys(['5928a00fa978807cf85d90ec3f4b0147', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a', '882bf1849978e9c154a07cbcdc990145'], true) ); return $loader;