mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-14 12:29:43 +01:00
Updated Rector to commit 1a98723aebf1bdf9462b785d49f75d914b569779
1a98723aeb
[Naming] Skip all kinds of generators (#5187)
This commit is contained in:
parent
d260adfd2b
commit
65b387953a
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user