Updated Rector to commit 02cec7ebc43469d599cc6a66945e239267626ed6

02cec7ebc4 [DeadCode] Skip global and static variable on ReturnEarlyIfVariableRector (#2642)
This commit is contained in:
Tomas Votruba 2022-07-08 21:40:34 +00:00
parent c2a85841bd
commit 3e3d9cabe0
5 changed files with 17 additions and 14 deletions

View File

@ -117,6 +117,9 @@ CODE_SAMPLE
if (!$assign->var instanceof Variable) {
return null;
}
if ($this->variableAnalyzer->isStaticOrGlobal($assign->var)) {
return null;
}
if ($this->variableAnalyzer->isUsedByReference($assign->var)) {
return null;
}

View File

@ -17,12 +17,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'bf92b9c360eccb0a95b3b7f4a41efc4f875e5723';
public const PACKAGE_VERSION = '02cec7ebc43469d599cc6a66945e239267626ed6';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2022-07-08 23:34:00';
public const RELEASE_DATE = '2022-07-08 23:34:27';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInitd6e8a28599da9a607e70d8b95309107d::getLoader();
return ComposerAutoloaderInit65844042650748b427643357db07273b::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInitd6e8a28599da9a607e70d8b95309107d
class ComposerAutoloaderInit65844042650748b427643357db07273b
{
private static $loader;
@ -22,19 +22,19 @@ class ComposerAutoloaderInitd6e8a28599da9a607e70d8b95309107d
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInitd6e8a28599da9a607e70d8b95309107d', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit65844042650748b427643357db07273b', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInitd6e8a28599da9a607e70d8b95309107d', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit65844042650748b427643357db07273b', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitd6e8a28599da9a607e70d8b95309107d::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit65844042650748b427643357db07273b::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$includeFiles = \Composer\Autoload\ComposerStaticInitd6e8a28599da9a607e70d8b95309107d::$files;
$includeFiles = \Composer\Autoload\ComposerStaticInit65844042650748b427643357db07273b::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequired6e8a28599da9a607e70d8b95309107d($fileIdentifier, $file);
composerRequire65844042650748b427643357db07273b($fileIdentifier, $file);
}
return $loader;
@ -46,7 +46,7 @@ class ComposerAutoloaderInitd6e8a28599da9a607e70d8b95309107d
* @param string $file
* @return void
*/
function composerRequired6e8a28599da9a607e70d8b95309107d($fileIdentifier, $file)
function composerRequire65844042650748b427643357db07273b($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

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