From 65b387953acd798ac552878a23d0c9f8597fcc61 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Wed, 18 Oct 2023 09:38:53 +0000 Subject: [PATCH] Updated Rector to commit 1a98723aebf1bdf9462b785d49f75d914b569779 https://github.com/rectorphp/rector-src/commit/1a98723aebf1bdf9462b785d49f75d914b569779 [Naming] Skip all kinds of generators (#5187) --- rules/Naming/Guard/BreakingVariableRenameGuard.php | 3 +++ src/Application/VersionResolver.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/rules/Naming/Guard/BreakingVariableRenameGuard.php b/rules/Naming/Guard/BreakingVariableRenameGuard.php index b1f371fb190..576a34c6302 100644 --- a/rules/Naming/Guard/BreakingVariableRenameGuard.php +++ b/rules/Naming/Guard/BreakingVariableRenameGuard.php @@ -194,6 +194,9 @@ final class BreakingVariableRenameGuard if (!$paramType instanceof ObjectType) { return \false; } + if (\substr_compare($paramType->getClassName(), 'Generator', -\strlen('Generator')) === 0 || \substr_compare($paramType->getClassName(), 'Iterator', -\strlen('Iterator')) === 0) { + return \true; + } return $paramType->isInstanceOf('Symfony\\Component\\DependencyInjection\\Argument\\RewindableGenerator')->yes(); } } diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 5abe4236ff5..c6977903d57 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 = '96fae07575c6c64ac7e2950388cbe07d18cbcfc5'; + public const PACKAGE_VERSION = '1a98723aebf1bdf9462b785d49f75d914b569779'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-10-18 09:24:02'; + public const RELEASE_DATE = '2023-10-18 09:35:59'; /** * @var int */