Updated Rector to commit f3298734224413d9781f2f6f292e23f21db5f232

f329873422 [Defluent] Skip New_ with not a Name on InArgFluentChainMethodCallToStandaloneMethodCallRector (#677)
This commit is contained in:
Tomas Votruba 2021-08-14 12:21:24 +00:00
parent f353893d6d
commit 5916663bf3
6 changed files with 23 additions and 23 deletions

View File

@ -176,11 +176,11 @@ final class VariableNaming
}
private function resolveFromNew(\PhpParser\Node\Expr\New_ $new) : string
{
if ($new->class instanceof \PhpParser\Node\Name) {
$className = $this->nodeNameResolver->getName($new->class);
return $this->nodeNameResolver->getShortName($className);
$className = $this->nodeNameResolver->getName($new->class);
if ($className === null) {
throw new \Rector\Core\Exception\NotImplementedYetException();
}
throw new \Rector\Core\Exception\NotImplementedYetException();
return $this->nodeNameResolver->getShortName($className);
}
private function unwrapNode(\PhpParser\Node $node) : ?\PhpParser\Node
{

View File

@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = 'bf038c60bdbccbac2582ac826466fb745249246a';
public const PACKAGE_VERSION = 'f3298734224413d9781f2f6f292e23f21db5f232';
/**
* @var string
*/
public const RELEASE_DATE = '2021-08-14 11:07:22';
public const RELEASE_DATE = '2021-08-14 19:09:19';
public static function resolvePackageVersion() : string
{
$process = new \RectorPrefix20210814\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 ComposerAutoloaderInit2550cb98042c3c96a5c6516bd8331d16::getLoader();
return ComposerAutoloaderInite60d7df0f6e2662b9756ca8c290a8e02::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit2550cb98042c3c96a5c6516bd8331d16
class ComposerAutoloaderInite60d7df0f6e2662b9756ca8c290a8e02
{
private static $loader;
@ -22,15 +22,15 @@ class ComposerAutoloaderInit2550cb98042c3c96a5c6516bd8331d16
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit2550cb98042c3c96a5c6516bd8331d16', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInite60d7df0f6e2662b9756ca8c290a8e02', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInit2550cb98042c3c96a5c6516bd8331d16', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInite60d7df0f6e2662b9756ca8c290a8e02', '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\ComposerStaticInit2550cb98042c3c96a5c6516bd8331d16::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInite60d7df0f6e2662b9756ca8c290a8e02::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
@ -42,19 +42,19 @@ class ComposerAutoloaderInit2550cb98042c3c96a5c6516bd8331d16
$loader->register(true);
if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInit2550cb98042c3c96a5c6516bd8331d16::$files;
$includeFiles = Composer\Autoload\ComposerStaticInite60d7df0f6e2662b9756ca8c290a8e02::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire2550cb98042c3c96a5c6516bd8331d16($fileIdentifier, $file);
composerRequiree60d7df0f6e2662b9756ca8c290a8e02($fileIdentifier, $file);
}
return $loader;
}
}
function composerRequire2550cb98042c3c96a5c6516bd8331d16($fileIdentifier, $file)
function composerRequiree60d7df0f6e2662b9756ca8c290a8e02($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInit2550cb98042c3c96a5c6516bd8331d16
class ComposerStaticInite60d7df0f6e2662b9756ca8c290a8e02
{
public static $files = array (
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
@ -3850,9 +3850,9 @@ class ComposerStaticInit2550cb98042c3c96a5c6516bd8331d16
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit2550cb98042c3c96a5c6516bd8331d16::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit2550cb98042c3c96a5c6516bd8331d16::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit2550cb98042c3c96a5c6516bd8331d16::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInite60d7df0f6e2662b9756ca8c290a8e02::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInite60d7df0f6e2662b9756ca8c290a8e02::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInite60d7df0f6e2662b9756ca8c290a8e02::$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('RectorPrefix20210814\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInit2550cb98042c3c96a5c6516bd8331d16', false) && !interface_exists('ComposerAutoloaderInit2550cb98042c3c96a5c6516bd8331d16', false) && !trait_exists('ComposerAutoloaderInit2550cb98042c3c96a5c6516bd8331d16', false)) {
spl_autoload_call('RectorPrefix20210814\ComposerAutoloaderInit2550cb98042c3c96a5c6516bd8331d16');
if (!class_exists('ComposerAutoloaderInite60d7df0f6e2662b9756ca8c290a8e02', false) && !interface_exists('ComposerAutoloaderInite60d7df0f6e2662b9756ca8c290a8e02', false) && !trait_exists('ComposerAutoloaderInite60d7df0f6e2662b9756ca8c290a8e02', false)) {
spl_autoload_call('RectorPrefix20210814\ComposerAutoloaderInite60d7df0f6e2662b9756ca8c290a8e02');
}
if (!class_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !interface_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !trait_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false)) {
spl_autoload_call('RectorPrefix20210814\Helmich\TypoScriptParser\Parser\AST\Statement');
@ -3308,9 +3308,9 @@ if (!function_exists('print_node')) {
return \RectorPrefix20210814\print_node(...func_get_args());
}
}
if (!function_exists('composerRequire2550cb98042c3c96a5c6516bd8331d16')) {
function composerRequire2550cb98042c3c96a5c6516bd8331d16() {
return \RectorPrefix20210814\composerRequire2550cb98042c3c96a5c6516bd8331d16(...func_get_args());
if (!function_exists('composerRequiree60d7df0f6e2662b9756ca8c290a8e02')) {
function composerRequiree60d7df0f6e2662b9756ca8c290a8e02() {
return \RectorPrefix20210814\composerRequiree60d7df0f6e2662b9756ca8c290a8e02(...func_get_args());
}
}
if (!function_exists('parseArgs')) {