mirror of
https://github.com/rectorphp/rector.git
synced 2024-05-31 16:30:51 +00:00
Updated Rector to commit 82b24679cd1763f610b5356684766658ab9a80fa
82b24679cd
[DeadCode] Handle anonymous and arrow function uses in RemoveJustPropertyFetchRector (#2592)
This commit is contained in:
parent
26c0e5c79b
commit
4f6ff772bb
|
@ -37,7 +37,6 @@ use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocator\Intermedia
|
|||
use Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocatorProvider\DynamicSourceLocatorProvider;
|
||||
use Rector\PSR4\Composer\PSR4NamespaceMatcher;
|
||||
use Rector\PSR4\Contract\PSR4AutoloadNamespaceMatcherInterface;
|
||||
use Rector\Utils\Command\MissingInSetCommand;
|
||||
use RectorPrefix202206\Symfony\Component\Console\Application;
|
||||
use function RectorPrefix202206\Symfony\Component\DependencyInjection\Loader\Configurator\service;
|
||||
use RectorPrefix202206\Symplify\Astral\NodeTraverser\SimpleCallableNodeTraverser;
|
||||
|
@ -139,5 +138,4 @@ return static function (RectorConfig $rectorConfig) : void {
|
|||
$services->set(ScopeFactory::class)->factory([service(PHPStanServicesFactory::class), 'createScopeFactory']);
|
||||
$services->set(TypeNodeResolver::class)->factory([service(PHPStanServicesFactory::class), 'createTypeNodeResolver']);
|
||||
$services->set(DynamicSourceLocatorProvider::class)->factory([service(PHPStanServicesFactory::class), 'createDynamicSourceLocatorProvider']);
|
||||
$services->set(MissingInSetCommand::class);
|
||||
};
|
||||
|
|
|
@ -55,8 +55,8 @@ final class ExprParameterReflectionTypeCorrector
|
|||
if (!$attributeClassReflection->hasConstructor()) {
|
||||
return $items;
|
||||
}
|
||||
$extendedMethodReflection = $attributeClassReflection->getConstructor();
|
||||
$parametersAcceptor = ParametersAcceptorSelector::selectSingle($extendedMethodReflection->getVariants());
|
||||
$constructorClassMethodReflection = $attributeClassReflection->getConstructor();
|
||||
$parametersAcceptor = ParametersAcceptorSelector::selectSingle($constructorClassMethodReflection->getVariants());
|
||||
foreach ($items as $name => $item) {
|
||||
foreach ($parametersAcceptor->getParameters() as $parameterReflection) {
|
||||
$correctedItem = $this->correctItemByParameterReflection($name, $item, $parameterReflection);
|
||||
|
|
|
@ -16,11 +16,11 @@ final class VersionResolver
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '143f743d4ffb63b8fa6649841782d6d48735d472';
|
||||
public const PACKAGE_VERSION = '82b24679cd1763f610b5356684766658ab9a80fa';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-06-30 15:26:19';
|
||||
public const RELEASE_DATE = '2022-06-30 15:25:35';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
|
@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitfca18ff1edd9fce0f35bc4b9397ad687::getLoader();
|
||||
return ComposerAutoloaderInitf79d6a5171cc416cdb9a2c5a43b7aa59::getLoader();
|
||||
|
|
2
vendor/composer/autoload_psr4.php
vendored
2
vendor/composer/autoload_psr4.php
vendored
|
@ -9,7 +9,6 @@ return array(
|
|||
'Symplify\\RuleDocGenerator\\' => array($vendorDir . '/symplify/rule-doc-generator-contracts/src'),
|
||||
'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'),
|
||||
'Symfony\\Polyfill\\Intl\\Normalizer\\' => array($vendorDir . '/symfony/polyfill-intl-normalizer'),
|
||||
'Rector\\Utils\\' => array($baseDir . '/utils'),
|
||||
'Rector\\Symfony\\' => array($vendorDir . '/rector/rector-symfony/src'),
|
||||
'Rector\\Set\\' => array($vendorDir . '/rector/rector-downgrade-php/packages/Set'),
|
||||
'Rector\\RectorInstaller\\' => array($vendorDir . '/rector/extension-installer/src'),
|
||||
|
@ -20,6 +19,7 @@ return array(
|
|||
'Rector\\Laravel\\' => array($vendorDir . '/rector/rector-laravel/src'),
|
||||
'Rector\\Doctrine\\' => array($vendorDir . '/rector/rector-doctrine/src'),
|
||||
'Rector\\Core\\' => array($baseDir . '/src'),
|
||||
'Rector\\Compiler\\' => array($baseDir . '/utils/compiler/src'),
|
||||
'Rector\\CakePHP\\' => array($vendorDir . '/rector/rector-cakephp/src'),
|
||||
'Rector\\' => array($baseDir . '/packages', $baseDir . '/rules', $vendorDir . '/rector/rector-downgrade-php/src'),
|
||||
'RectorPrefix202206\\Webmozart\\Assert\\' => array($vendorDir . '/webmozart/assert/src'),
|
||||
|
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitfca18ff1edd9fce0f35bc4b9397ad687
|
||||
class ComposerAutoloaderInitf79d6a5171cc416cdb9a2c5a43b7aa59
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,19 +22,19 @@ class ComposerAutoloaderInitfca18ff1edd9fce0f35bc4b9397ad687
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitfca18ff1edd9fce0f35bc4b9397ad687', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitf79d6a5171cc416cdb9a2c5a43b7aa59', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitfca18ff1edd9fce0f35bc4b9397ad687', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitf79d6a5171cc416cdb9a2c5a43b7aa59', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitfca18ff1edd9fce0f35bc4b9397ad687::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitf79d6a5171cc416cdb9a2c5a43b7aa59::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInitfca18ff1edd9fce0f35bc4b9397ad687::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInitf79d6a5171cc416cdb9a2c5a43b7aa59::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequirefca18ff1edd9fce0f35bc4b9397ad687($fileIdentifier, $file);
|
||||
composerRequiref79d6a5171cc416cdb9a2c5a43b7aa59($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
|
@ -46,7 +46,7 @@ class ComposerAutoloaderInitfca18ff1edd9fce0f35bc4b9397ad687
|
|||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequirefca18ff1edd9fce0f35bc4b9397ad687($fileIdentifier, $file)
|
||||
function composerRequiref79d6a5171cc416cdb9a2c5a43b7aa59($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
|
18
vendor/composer/autoload_static.php
vendored
18
vendor/composer/autoload_static.php
vendored
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInitfca18ff1edd9fce0f35bc4b9397ad687
|
||||
class ComposerStaticInitf79d6a5171cc416cdb9a2c5a43b7aa59
|
||||
{
|
||||
public static $files = array (
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
|
@ -28,7 +28,6 @@ class ComposerStaticInitfca18ff1edd9fce0f35bc4b9397ad687
|
|||
),
|
||||
'R' =>
|
||||
array (
|
||||
'Rector\\Utils\\' => 13,
|
||||
'Rector\\Symfony\\' => 15,
|
||||
'Rector\\Set\\' => 11,
|
||||
'Rector\\RectorInstaller\\' => 23,
|
||||
|
@ -39,6 +38,7 @@ class ComposerStaticInitfca18ff1edd9fce0f35bc4b9397ad687
|
|||
'Rector\\Laravel\\' => 15,
|
||||
'Rector\\Doctrine\\' => 16,
|
||||
'Rector\\Core\\' => 12,
|
||||
'Rector\\Compiler\\' => 16,
|
||||
'Rector\\CakePHP\\' => 15,
|
||||
'Rector\\' => 7,
|
||||
'RectorPrefix202206\\Webmozart\\Assert\\' => 36,
|
||||
|
@ -99,10 +99,6 @@ class ComposerStaticInitfca18ff1edd9fce0f35bc4b9397ad687
|
|||
array (
|
||||
0 => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer',
|
||||
),
|
||||
'Rector\\Utils\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/../..' . '/utils',
|
||||
),
|
||||
'Rector\\Symfony\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/rector/rector-symfony/src',
|
||||
|
@ -144,6 +140,10 @@ class ComposerStaticInitfca18ff1edd9fce0f35bc4b9397ad687
|
|||
array (
|
||||
0 => __DIR__ . '/../..' . '/src',
|
||||
),
|
||||
'Rector\\Compiler\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/../..' . '/utils/compiler/src',
|
||||
),
|
||||
'Rector\\CakePHP\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/rector/rector-cakephp/src',
|
||||
|
@ -3417,9 +3417,9 @@ class ComposerStaticInitfca18ff1edd9fce0f35bc4b9397ad687
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitfca18ff1edd9fce0f35bc4b9397ad687::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitfca18ff1edd9fce0f35bc4b9397ad687::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitfca18ff1edd9fce0f35bc4b9397ad687::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitf79d6a5171cc416cdb9a2c5a43b7aa59::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitf79d6a5171cc416cdb9a2c5a43b7aa59::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitf79d6a5171cc416cdb9a2c5a43b7aa59::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user