Updated Rector to commit d4a432e7e490695a11daa32bce6bf20ab0d075f6

d4a432e7e4 Fix StrictArrayParamDimFetchRector on `is_*` calls (#4486)
This commit is contained in:
Tomas Votruba 2023-07-12 08:02:53 +00:00
parent db04f76104
commit 100d1e2fc8
9 changed files with 20 additions and 20 deletions

View File

@ -90,7 +90,7 @@ CODE_SAMPLE
$paramName = $this->getName($param);
$isParamAccessedArrayDimFetch = \false;
$this->traverseNodesWithCallable($functionLike, function (Node $node) use($paramName, &$isParamAccessedArrayDimFetch) : ?int {
if ($node instanceof FuncCall && $this->isName($node, 'is_array')) {
if ($node instanceof FuncCall && $this->isNames($node, ['is_array', 'is_string', 'is_int', 'is_bool', 'is_float'])) {
$firstArg = $node->getArgs()[0];
if ($this->isName($firstArg->value, $paramName)) {
return NodeTraverser::STOP_TRAVERSAL;

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'd78bfb44bebd32bd212a1f1ca43d2da51b22286d';
public const PACKAGE_VERSION = 'd4a432e7e490695a11daa32bce6bf20ab0d075f6';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-07-12 07:18:29';
public const RELEASE_DATE = '2023-07-12 14:58:44';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

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

View File

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

View File

@ -2050,12 +2050,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
"reference": "a269cc4a0c66cfdde60006cb66b7836103230e76"
"reference": "1ef67e35a89ddf9e77112a2fade04e8cdcb94f47"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/a269cc4a0c66cfdde60006cb66b7836103230e76",
"reference": "a269cc4a0c66cfdde60006cb66b7836103230e76",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/1ef67e35a89ddf9e77112a2fade04e8cdcb94f47",
"reference": "1ef67e35a89ddf9e77112a2fade04e8cdcb94f47",
"shasum": ""
},
"require": {
@ -2084,7 +2084,7 @@
"tomasvotruba\/type-coverage": "^0.1",
"tomasvotruba\/unused-public": "^0.1"
},
"time": "2023-07-10T23:21:59+00:00",
"time": "2023-07-12T07:39:03+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 8afdccb'), '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 410d05f'), '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 a269cc4'), '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 e788554'));
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 8afdccb'), '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 410d05f'), '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 1ef67e3'), '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 e788554'));
private function __construct()
{
}

View File

@ -101,7 +101,7 @@ CODE_SAMPLE
if ($coversAttributeGroups === []) {
return null;
}
$node->attrGroups = $coversAttributeGroups;
$node->attrGroups = \array_merge($node->attrGroups, $coversAttributeGroups);
return $node;
}
private function createAttributeGroup(string $annotationValue) : AttributeGroup