Updated Rector to commit e4b356c117

e4b356c117 [Defluent] Skip create variable from not PropertyFetch on ReturnFluentChainMethodCallToNormalMethodCallRector (#595)
This commit is contained in:
Tomas Votruba 2021-08-04 16:14:54 +00:00
parent 50a3e9f997
commit 91514099e6
6 changed files with 23 additions and 19 deletions

View File

@ -4,6 +4,7 @@ declare (strict_types=1);
namespace Rector\Defluent\ValueObjectFactory;
use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node\Expr\PropertyFetch;
use Rector\Defluent\NodeAnalyzer\FluentChainMethodCallNodeAnalyzer;
use Rector\Defluent\NodeAnalyzer\SameClassMethodCallAnalyzer;
use Rector\Defluent\ValueObject\FluentMethodCalls;
@ -33,6 +34,9 @@ final class FluentMethodCallsFactory
return null;
}
$rootMethodCall = $this->resolveRootMethodCall($chainMethodCalls);
if (!$rootMethodCall->var instanceof \PhpParser\Node\Expr\PropertyFetch) {
return null;
}
return new \Rector\Defluent\ValueObject\FluentMethodCalls($rootMethodCall, $chainMethodCalls, $lastMethodCall);
}
/**

View File

@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = '6d7b885de8b3ebb735137e37d8fa0ee1f6fd1011';
public const PACKAGE_VERSION = 'e4b356c117731ff982f2c3a0a02f69c143469457';
/**
* @var string
*/
public const RELEASE_DATE = '2021-08-04 14:03:57';
public const RELEASE_DATE = '2021-08-04 18:05:38';
public static function resolvePackageVersion() : string
{
$process = new \RectorPrefix20210804\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);

2
vendor/autoload.php vendored
View File

@ -4,4 +4,4 @@
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInitff82438c046fac19127569466b1a962b::getLoader();
return ComposerAutoloaderInit9e494b56f3f19b6ef87497aac653c9aa::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInitff82438c046fac19127569466b1a962b
class ComposerAutoloaderInit9e494b56f3f19b6ef87497aac653c9aa
{
private static $loader;
@ -22,15 +22,15 @@ class ComposerAutoloaderInitff82438c046fac19127569466b1a962b
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInitff82438c046fac19127569466b1a962b', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit9e494b56f3f19b6ef87497aac653c9aa', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInitff82438c046fac19127569466b1a962b', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit9e494b56f3f19b6ef87497aac653c9aa', 'loadClassLoader'));
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitff82438c046fac19127569466b1a962b::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit9e494b56f3f19b6ef87497aac653c9aa::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
@ -42,19 +42,19 @@ class ComposerAutoloaderInitff82438c046fac19127569466b1a962b
$loader->register(true);
if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInitff82438c046fac19127569466b1a962b::$files;
$includeFiles = Composer\Autoload\ComposerStaticInit9e494b56f3f19b6ef87497aac653c9aa::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequireff82438c046fac19127569466b1a962b($fileIdentifier, $file);
composerRequire9e494b56f3f19b6ef87497aac653c9aa($fileIdentifier, $file);
}
return $loader;
}
}
function composerRequireff82438c046fac19127569466b1a962b($fileIdentifier, $file)
function composerRequire9e494b56f3f19b6ef87497aac653c9aa($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInitff82438c046fac19127569466b1a962b
class ComposerStaticInit9e494b56f3f19b6ef87497aac653c9aa
{
public static $files = array (
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
@ -3845,9 +3845,9 @@ class ComposerStaticInitff82438c046fac19127569466b1a962b
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitff82438c046fac19127569466b1a962b::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitff82438c046fac19127569466b1a962b::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitff82438c046fac19127569466b1a962b::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit9e494b56f3f19b6ef87497aac653c9aa::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit9e494b56f3f19b6ef87497aac653c9aa::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit9e494b56f3f19b6ef87497aac653c9aa::$classMap;
}, null, ClassLoader::class);
}

View File

@ -9,8 +9,8 @@ $loader = require_once __DIR__.'/autoload.php';
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
spl_autoload_call('RectorPrefix20210804\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInitff82438c046fac19127569466b1a962b', false) && !interface_exists('ComposerAutoloaderInitff82438c046fac19127569466b1a962b', false) && !trait_exists('ComposerAutoloaderInitff82438c046fac19127569466b1a962b', false)) {
spl_autoload_call('RectorPrefix20210804\ComposerAutoloaderInitff82438c046fac19127569466b1a962b');
if (!class_exists('ComposerAutoloaderInit9e494b56f3f19b6ef87497aac653c9aa', false) && !interface_exists('ComposerAutoloaderInit9e494b56f3f19b6ef87497aac653c9aa', false) && !trait_exists('ComposerAutoloaderInit9e494b56f3f19b6ef87497aac653c9aa', false)) {
spl_autoload_call('RectorPrefix20210804\ComposerAutoloaderInit9e494b56f3f19b6ef87497aac653c9aa');
}
if (!class_exists('AjaxLogin', false) && !interface_exists('AjaxLogin', false) && !trait_exists('AjaxLogin', false)) {
spl_autoload_call('RectorPrefix20210804\AjaxLogin');
@ -3305,9 +3305,9 @@ if (!function_exists('print_node')) {
return \RectorPrefix20210804\print_node(...func_get_args());
}
}
if (!function_exists('composerRequireff82438c046fac19127569466b1a962b')) {
function composerRequireff82438c046fac19127569466b1a962b() {
return \RectorPrefix20210804\composerRequireff82438c046fac19127569466b1a962b(...func_get_args());
if (!function_exists('composerRequire9e494b56f3f19b6ef87497aac653c9aa')) {
function composerRequire9e494b56f3f19b6ef87497aac653c9aa() {
return \RectorPrefix20210804\composerRequire9e494b56f3f19b6ef87497aac653c9aa(...func_get_args());
}
}
if (!function_exists('parseArgs')) {