mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-22 08:25:02 +02:00
Updated Rector to commit 0893df020e01529a72933efee0c085752e24c4d2
0893df020e
Skip rewindable generator (#4282)
This commit is contained in:
parent
8bf7af2ff0
commit
4d62037b71
@ -135,6 +135,9 @@ final class BreakingVariableRenameGuard
|
||||
if ($this->isRamseyUuidInterface($param)) {
|
||||
return \true;
|
||||
}
|
||||
if ($this->isGenerator($param)) {
|
||||
return \true;
|
||||
}
|
||||
if ($this->isDateTimeAtNamingConvention($param)) {
|
||||
return \true;
|
||||
}
|
||||
@ -213,16 +216,10 @@ final class BreakingVariableRenameGuard
|
||||
}
|
||||
return \false;
|
||||
}
|
||||
/**
|
||||
* @TODO Remove once ParamRenamer created
|
||||
*/
|
||||
private function isRamseyUuidInterface(Param $param) : bool
|
||||
{
|
||||
return $this->nodeTypeResolver->isObjectType($param, new ObjectType('Ramsey\\Uuid\\UuidInterface'));
|
||||
}
|
||||
/**
|
||||
* @TODO Remove once ParamRenamer created
|
||||
*/
|
||||
private function isDateTimeAtNamingConvention(Param $param) : bool
|
||||
{
|
||||
$type = $this->nodeTypeResolver->getType($param);
|
||||
@ -237,4 +234,8 @@ final class BreakingVariableRenameGuard
|
||||
$currentName = $this->nodeNameResolver->getName($param);
|
||||
return StringUtils::isMatch($currentName, self::AT_NAMING_REGEX . '');
|
||||
}
|
||||
private function isGenerator(Param $param) : bool
|
||||
{
|
||||
return $this->nodeTypeResolver->isObjectType($param, new ObjectType('Symfony\\Component\\DependencyInjection\\Argument\\RewindableGenerator'));
|
||||
}
|
||||
}
|
||||
|
@ -86,8 +86,12 @@ CODE_SAMPLE
|
||||
if (!$classMethod instanceof ClassMethod) {
|
||||
return null;
|
||||
}
|
||||
$propertyFetch = $this->matchLocalPropertyFetchInGetterMethod($classMethod);
|
||||
if (!$propertyFetch instanceof PropertyFetch) {
|
||||
return null;
|
||||
}
|
||||
$hasChanged = \true;
|
||||
return $this->matchLocalPropertyFetchInGetterMethod($classMethod);
|
||||
return $propertyFetch;
|
||||
});
|
||||
if ($hasChanged) {
|
||||
return $node;
|
||||
|
@ -19,12 +19,12 @@ final class VersionResolver
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '0d6800eea6b74352bd2dd16d7a2254c9398e4e98';
|
||||
public const PACKAGE_VERSION = '0893df020e01529a72933efee0c085752e24c4d2';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2023-06-19 08:23:04';
|
||||
public const RELEASE_DATE = '2023-06-19 10:56:51';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit1d7cf0512d1a9abcf600e788fc23ce4a::getLoader();
|
||||
return ComposerAutoloaderInit1f6b04f7257aa3a6696abf04b600f7a5::getLoader();
|
||||
|
10
vendor/composer/autoload_real.php
vendored
10
vendor/composer/autoload_real.php
vendored
@ -2,7 +2,7 @@
|
||||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit1d7cf0512d1a9abcf600e788fc23ce4a
|
||||
class ComposerAutoloaderInit1f6b04f7257aa3a6696abf04b600f7a5
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,17 +22,17 @@ class ComposerAutoloaderInit1d7cf0512d1a9abcf600e788fc23ce4a
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit1d7cf0512d1a9abcf600e788fc23ce4a', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit1f6b04f7257aa3a6696abf04b600f7a5', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit1d7cf0512d1a9abcf600e788fc23ce4a', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit1f6b04f7257aa3a6696abf04b600f7a5', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit1d7cf0512d1a9abcf600e788fc23ce4a::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit1f6b04f7257aa3a6696abf04b600f7a5::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit1d7cf0512d1a9abcf600e788fc23ce4a::$files;
|
||||
$filesToLoad = \Composer\Autoload\ComposerStaticInit1f6b04f7257aa3a6696abf04b600f7a5::$files;
|
||||
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
8
vendor/composer/autoload_static.php
vendored
8
vendor/composer/autoload_static.php
vendored
@ -4,7 +4,7 @@
|
||||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit1d7cf0512d1a9abcf600e788fc23ce4a
|
||||
class ComposerStaticInit1f6b04f7257aa3a6696abf04b600f7a5
|
||||
{
|
||||
public static $files = array (
|
||||
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
|
||||
@ -3095,9 +3095,9 @@ class ComposerStaticInit1d7cf0512d1a9abcf600e788fc23ce4a
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit1d7cf0512d1a9abcf600e788fc23ce4a::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit1d7cf0512d1a9abcf600e788fc23ce4a::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit1d7cf0512d1a9abcf600e788fc23ce4a::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit1f6b04f7257aa3a6696abf04b600f7a5::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit1f6b04f7257aa3a6696abf04b600f7a5::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit1f6b04f7257aa3a6696abf04b600f7a5::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user