From 97c24103e63d04cbdc38c4233c95af3d956358c6 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Tue, 30 Jan 2024 20:48:28 +0000 Subject: [PATCH] Updated Rector to commit 6046c24443d9bfdfe5bf8638fb82e03703ee1df8 https://github.com/rectorphp/rector-src/commit/6046c24443d9bfdfe5bf8638fb82e03703ee1df8 [CodingStyle] Return null on no change on StrictArraySearchRector (#5528) --- rules/CodingStyle/Rector/FuncCall/StrictArraySearchRector.php | 3 ++- src/Application/VersionResolver.php | 4 ++-- vendor/scoper-autoload.php | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/rules/CodingStyle/Rector/FuncCall/StrictArraySearchRector.php b/rules/CodingStyle/Rector/FuncCall/StrictArraySearchRector.php index 7d91d50987b..3034164e67b 100644 --- a/rules/CodingStyle/Rector/FuncCall/StrictArraySearchRector.php +++ b/rules/CodingStyle/Rector/FuncCall/StrictArraySearchRector.php @@ -34,7 +34,8 @@ final class StrictArraySearchRector extends AbstractRector } if (\count($node->args) === 2) { $node->args[2] = $this->nodeFactory->createArg($this->nodeFactory->createTrue()); + return $node; } - return $node; + return null; } } diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 94643df9634..deea7a36b44 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 = '2f041dc9beacc2f150344f4c169cc14d4c4991d9'; + public const PACKAGE_VERSION = '6046c24443d9bfdfe5bf8638fb82e03703ee1df8'; /** * @api * @var string */ - public const RELEASE_DATE = '2024-01-30 21:41:26'; + public const RELEASE_DATE = '2024-01-31 03:46:18'; /** * @var int */ diff --git a/vendor/scoper-autoload.php b/vendor/scoper-autoload.php index 1396b5ed8bd..494dc7f540a 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;