Updated Rector to commit 4ea7d0f477ff10755172869818056824b2d42dcd

4ea7d0f477 [DeadCode] Clean up PHPStan notice on ComplexNodeRemover::processRemoveParamWithKeys() (#4018)
This commit is contained in:
Tomas Votruba 2023-05-29 12:32:37 +00:00
parent 85587ab16d
commit 2f8ba99efb
7 changed files with 18 additions and 22 deletions

2
vendor/autoload.php vendored
View File

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

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit6599d41cd5be82cd553f91baa91d844d
class ComposerAutoloaderInit902504fa7beabfcd6ff6466ab24ef26a
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit6599d41cd5be82cd553f91baa91d844d
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit6599d41cd5be82cd553f91baa91d844d', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit902504fa7beabfcd6ff6466ab24ef26a', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit6599d41cd5be82cd553f91baa91d844d', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit902504fa7beabfcd6ff6466ab24ef26a', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit6599d41cd5be82cd553f91baa91d844d::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit902504fa7beabfcd6ff6466ab24ef26a::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit6599d41cd5be82cd553f91baa91d844d::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit902504fa7beabfcd6ff6466ab24ef26a::$files;
$requireFile = \Closure::bind(static function ($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 ComposerStaticInit6599d41cd5be82cd553f91baa91d844d
class ComposerStaticInit902504fa7beabfcd6ff6466ab24ef26a
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3083,9 +3083,9 @@ class ComposerStaticInit6599d41cd5be82cd553f91baa91d844d
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit6599d41cd5be82cd553f91baa91d844d::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit6599d41cd5be82cd553f91baa91d844d::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit6599d41cd5be82cd553f91baa91d844d::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit902504fa7beabfcd6ff6466ab24ef26a::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit902504fa7beabfcd6ff6466ab24ef26a::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit902504fa7beabfcd6ff6466ab24ef26a::$classMap;
}, null, ClassLoader::class);
}

View File

@ -1855,12 +1855,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-doctrine.git",
"reference": "cafabaf07ebd7a6ff5e69abe2c99b7ab277fdee6"
"reference": "be504546c398d814aca92129d53010411eaef546"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/cafabaf07ebd7a6ff5e69abe2c99b7ab277fdee6",
"reference": "cafabaf07ebd7a6ff5e69abe2c99b7ab277fdee6",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/be504546c398d814aca92129d53010411eaef546",
"reference": "be504546c398d814aca92129d53010411eaef546",
"shasum": ""
},
"require": {
@ -1885,7 +1885,7 @@
"tomasvotruba\/type-coverage": "^0.2.0",
"tomasvotruba\/unused-public": "^0.1.10"
},
"time": "2023-05-29T08:18:21+00:00",
"time": "2023-05-29T12:25:44+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {

File diff suppressed because one or more lines are too long

View File

@ -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 cafabaf'), '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 abf0a7f'), '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 edbdd0e'), '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 3878c88'));
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 be50454'), '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 abf0a7f'), '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 edbdd0e'), '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 3878c88'));
private function __construct()
{
}

View File

@ -69,7 +69,7 @@ final class IssetDimFetchCleaner
continue;
}
// is required or optional?
if ($this->isRequiredIsset($isset, $if)) {
if ($this->isRequiredIsset($if)) {
// contains exception? → required param → skip
continue;
}
@ -124,12 +124,8 @@ final class IssetDimFetchCleaner
}
return $this->valueResolver->getValue($expr->dim);
}
private function isRequiredIsset(Isset_ $isset, If_ $if) : bool
private function isRequiredIsset(If_ $if) : bool
{
$parrentNode = $isset->getAttribute(AttributeKey::PARENT_NODE);
if (!$parrentNode instanceof BooleanNot) {
return \false;
}
return $this->betterNodeFinder->hasInstancesOf($if->stmts, [Throw_::class, ThrowStmt::class]);
}
}