1
0
mirror of https://github.com/rectorphp/rector.git synced 2025-04-24 09:25:42 +02:00

Updated Rector to commit e4f1f1bab4d008108bf537ba3877dc2c4e64fa25

e4f1f1bab4 [NodeTypeResolver] Handle isObjectType() on new $class dynamic variable should return false compare to Object FQCN ()
This commit is contained in:
Tomas Votruba 2023-09-07 18:43:32 +00:00
parent 4180102b55
commit fedb3edc8a
7 changed files with 16 additions and 19 deletions
vendor
autoload.php
composer
rector
extension-installer/src
rector-symfony/rules/Symfony43/Rector/StmtsAwareInterface

2
vendor/autoload.php vendored

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

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit1a60c50f2e2701ea0146192e5be3393b
class ComposerAutoloaderInitb269d5fb6e838d9850dc2db99bc595ae
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit1a60c50f2e2701ea0146192e5be3393b
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit1a60c50f2e2701ea0146192e5be3393b', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitb269d5fb6e838d9850dc2db99bc595ae', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit1a60c50f2e2701ea0146192e5be3393b', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitb269d5fb6e838d9850dc2db99bc595ae', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit1a60c50f2e2701ea0146192e5be3393b::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitb269d5fb6e838d9850dc2db99bc595ae::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit1a60c50f2e2701ea0146192e5be3393b::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInitb269d5fb6e838d9850dc2db99bc595ae::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInit1a60c50f2e2701ea0146192e5be3393b
class ComposerStaticInitb269d5fb6e838d9850dc2db99bc595ae
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -2603,9 +2603,9 @@ class ComposerStaticInit1a60c50f2e2701ea0146192e5be3393b
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit1a60c50f2e2701ea0146192e5be3393b::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit1a60c50f2e2701ea0146192e5be3393b::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit1a60c50f2e2701ea0146192e5be3393b::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitb269d5fb6e838d9850dc2db99bc595ae::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitb269d5fb6e838d9850dc2db99bc595ae::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitb269d5fb6e838d9850dc2db99bc595ae::$classMap;
}, null, ClassLoader::class);
}

@ -1958,12 +1958,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
"reference": "c2f94f699726a1039f432b8e50b272b5904e2270"
"reference": "44525c9bfce1b0bb979348c7c8fb6c2b3d407edb"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/c2f94f699726a1039f432b8e50b272b5904e2270",
"reference": "c2f94f699726a1039f432b8e50b272b5904e2270",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/44525c9bfce1b0bb979348c7c8fb6c2b3d407edb",
"reference": "44525c9bfce1b0bb979348c7c8fb6c2b3d407edb",
"shasum": ""
},
"require": {
@ -1996,7 +1996,7 @@
"tomasvotruba\/unused-public": "^0.2",
"tracy\/tracy": "^2.10"
},
"time": "2023-09-07T13:48:11+00:00",
"time": "2023-09-07T18:39:18+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {

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-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 b5eea3f'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 51a2650'), '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 0810d7c'), '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 c2f94f6'));
public const EXTENSIONS = array('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 b5eea3f'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 51a2650'), '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 0810d7c'), '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 44525c9'));
private function __construct()
{
}

@ -87,9 +87,6 @@ CODE_SAMPLE
if (!$assign->expr instanceof New_) {
continue;
}
if ($assign->expr->class instanceof Expr) {
continue;
}
$new = $assign->expr;
if (!$this->isObjectType($new, new ObjectType('Symfony\\Bundle\\TwigBundle\\Loader\\FilesystemLoader'))) {
continue;