mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
Updated Rector to commit 55a13c00205d47c74cb39bdd39c8a579be5dfe89
55a13c0020
test run in phpstan 1.4.8 (#1904)
This commit is contained in:
parent
a310d71ba1
commit
cbb0b7e7e8
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
@ -4,4 +4,4 @@
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitcaf169b3502a62911aa77556ba6f2c0d::getLoader();
|
||||
return ComposerAutoloaderInit01014c5d8910d5f49b7b614a9ca682ad::getLoader();
|
||||
|
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 ComposerAutoloaderInitcaf169b3502a62911aa77556ba6f2c0d
|
||||
class ComposerAutoloaderInit01014c5d8910d5f49b7b614a9ca682ad
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
@ -22,15 +22,15 @@ class ComposerAutoloaderInitcaf169b3502a62911aa77556ba6f2c0d
|
||||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitcaf169b3502a62911aa77556ba6f2c0d', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit01014c5d8910d5f49b7b614a9ca682ad', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitcaf169b3502a62911aa77556ba6f2c0d', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit01014c5d8910d5f49b7b614a9ca682ad', '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\ComposerStaticInitcaf169b3502a62911aa77556ba6f2c0d::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit01014c5d8910d5f49b7b614a9ca682ad::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
@ -42,12 +42,12 @@ class ComposerAutoloaderInitcaf169b3502a62911aa77556ba6f2c0d
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitcaf169b3502a62911aa77556ba6f2c0d::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit01014c5d8910d5f49b7b614a9ca682ad::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequirecaf169b3502a62911aa77556ba6f2c0d($fileIdentifier, $file);
|
||||
composerRequire01014c5d8910d5f49b7b614a9ca682ad($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
@ -59,7 +59,7 @@ class ComposerAutoloaderInitcaf169b3502a62911aa77556ba6f2c0d
|
||||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequirecaf169b3502a62911aa77556ba6f2c0d($fileIdentifier, $file)
|
||||
function composerRequire01014c5d8910d5f49b7b614a9ca682ad($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 ComposerStaticInitcaf169b3502a62911aa77556ba6f2c0d
|
||||
class ComposerStaticInit01014c5d8910d5f49b7b614a9ca682ad
|
||||
{
|
||||
public static $files = array (
|
||||
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
||||
@ -3835,9 +3835,9 @@ class ComposerStaticInitcaf169b3502a62911aa77556ba6f2c0d
|
||||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitcaf169b3502a62911aa77556ba6f2c0d::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitcaf169b3502a62911aa77556ba6f2c0d::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitcaf169b3502a62911aa77556ba6f2c0d::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit01014c5d8910d5f49b7b614a9ca682ad::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit01014c5d8910d5f49b7b614a9ca682ad::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit01014c5d8910d5f49b7b614a9ca682ad::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -2695,12 +2695,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
|
||||
"reference": "826c6cc35487c018b7af7605a6c1b8874226aa0b"
|
||||
"reference": "7a293398a45a525a4e5830c071cf117a9dc99d02"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/826c6cc35487c018b7af7605a6c1b8874226aa0b",
|
||||
"reference": "826c6cc35487c018b7af7605a6c1b8874226aa0b",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/7a293398a45a525a4e5830c071cf117a9dc99d02",
|
||||
"reference": "7a293398a45a525a4e5830c071cf117a9dc99d02",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -2728,7 +2728,7 @@
|
||||
"symplify\/rule-doc-generator": "^10.0",
|
||||
"symplify\/vendor-patches": "^10.0"
|
||||
},
|
||||
"time": "2022-03-06T13:04:12+00:00",
|
||||
"time": "2022-03-06T13:44:13+00:00",
|
||||
"default-branch": true,
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
|
||||
*/
|
||||
final class GeneratedConfig
|
||||
{
|
||||
public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main d1fa93d'), 'rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 96ff8cb'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main df58e86'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 6bee428'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main fbfa93c'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main f23c4bf'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 5952218'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 826c6cc'), 'ssch/typo3-rector' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/ssch/typo3-rector', 'relative_install_path' => '../../../ssch/typo3-rector', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 117eba3'));
|
||||
public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main d1fa93d'), 'rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 96ff8cb'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main df58e86'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 6bee428'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main fbfa93c'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main f23c4bf'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 5952218'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 7a29339'), 'ssch/typo3-rector' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/ssch/typo3-rector', 'relative_install_path' => '../../../ssch/typo3-rector', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 117eba3'));
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
@ -80,6 +80,10 @@ final class DependencyInjectionMethodCallAnalyzer
|
||||
}
|
||||
private function resolveNewPropertyNameWhenExists(\PhpParser\Node\Stmt\Class_ $class, string $originalPropertyName, string $propertyName, int $count = 1) : string
|
||||
{
|
||||
$lastCount = \substr($propertyName, \strlen($originalPropertyName));
|
||||
if (\is_numeric($lastCount)) {
|
||||
$count = (int) $lastCount;
|
||||
}
|
||||
$promotedPropertyParams = $this->promotedPropertyResolver->resolveFromClass($class);
|
||||
foreach ($promotedPropertyParams as $promotedPropertyParam) {
|
||||
if ($this->nodeNameResolver->isName($promotedPropertyParam->var, $propertyName)) {
|
||||
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
@ -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('RectorPrefix20220306\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInitcaf169b3502a62911aa77556ba6f2c0d', false) && !interface_exists('ComposerAutoloaderInitcaf169b3502a62911aa77556ba6f2c0d', false) && !trait_exists('ComposerAutoloaderInitcaf169b3502a62911aa77556ba6f2c0d', false)) {
|
||||
spl_autoload_call('RectorPrefix20220306\ComposerAutoloaderInitcaf169b3502a62911aa77556ba6f2c0d');
|
||||
if (!class_exists('ComposerAutoloaderInit01014c5d8910d5f49b7b614a9ca682ad', false) && !interface_exists('ComposerAutoloaderInit01014c5d8910d5f49b7b614a9ca682ad', false) && !trait_exists('ComposerAutoloaderInit01014c5d8910d5f49b7b614a9ca682ad', false)) {
|
||||
spl_autoload_call('RectorPrefix20220306\ComposerAutoloaderInit01014c5d8910d5f49b7b614a9ca682ad');
|
||||
}
|
||||
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('RectorPrefix20220306\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
@ -59,9 +59,9 @@ if (!function_exists('print_node')) {
|
||||
return \RectorPrefix20220306\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequirecaf169b3502a62911aa77556ba6f2c0d')) {
|
||||
function composerRequirecaf169b3502a62911aa77556ba6f2c0d() {
|
||||
return \RectorPrefix20220306\composerRequirecaf169b3502a62911aa77556ba6f2c0d(...func_get_args());
|
||||
if (!function_exists('composerRequire01014c5d8910d5f49b7b614a9ca682ad')) {
|
||||
function composerRequire01014c5d8910d5f49b7b614a9ca682ad() {
|
||||
return \RectorPrefix20220306\composerRequire01014c5d8910d5f49b7b614a9ca682ad(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user