Updated Rector to commit 23c2282d9aecc36c9123656be3b39dc8edca795e

23c2282d9a [ci] run phpstan on packages too to detect bugs in configs (#3081)
This commit is contained in:
Tomas Votruba 2022-11-19 12:05:34 +00:00
parent 75e646ce54
commit e5b061e232
8 changed files with 28 additions and 25 deletions

View File

@ -17,12 +17,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '6c7caa63c4025b47a382cd2e28b6f05fbcb55e71';
public const PACKAGE_VERSION = '23c2282d9aecc36c9123656be3b39dc8edca795e';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2022-11-19 12:44:29';
public const RELEASE_DATE = '2022-11-19 13:00:05';
/**
* @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 ComposerAutoloaderInit85146f7d3092bca839516053c0716b51::getLoader();
return ComposerAutoloaderInite06ca6a917accf738c246a1212574fc7::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit85146f7d3092bca839516053c0716b51
class ComposerAutoloaderInite06ca6a917accf738c246a1212574fc7
{
private static $loader;
@ -22,19 +22,19 @@ class ComposerAutoloaderInit85146f7d3092bca839516053c0716b51
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit85146f7d3092bca839516053c0716b51', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInite06ca6a917accf738c246a1212574fc7', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit85146f7d3092bca839516053c0716b51', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInite06ca6a917accf738c246a1212574fc7', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit85146f7d3092bca839516053c0716b51::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInite06ca6a917accf738c246a1212574fc7::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$includeFiles = \Composer\Autoload\ComposerStaticInit85146f7d3092bca839516053c0716b51::$files;
$includeFiles = \Composer\Autoload\ComposerStaticInite06ca6a917accf738c246a1212574fc7::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire85146f7d3092bca839516053c0716b51($fileIdentifier, $file);
composerRequiree06ca6a917accf738c246a1212574fc7($fileIdentifier, $file);
}
return $loader;
@ -46,7 +46,7 @@ class ComposerAutoloaderInit85146f7d3092bca839516053c0716b51
* @param string $file
* @return void
*/
function composerRequire85146f7d3092bca839516053c0716b51($fileIdentifier, $file)
function composerRequiree06ca6a917accf738c246a1212574fc7($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 ComposerStaticInit85146f7d3092bca839516053c0716b51
class ComposerStaticInite06ca6a917accf738c246a1212574fc7
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3036,9 +3036,9 @@ class ComposerStaticInit85146f7d3092bca839516053c0716b51
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit85146f7d3092bca839516053c0716b51::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit85146f7d3092bca839516053c0716b51::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit85146f7d3092bca839516053c0716b51::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInite06ca6a917accf738c246a1212574fc7::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInite06ca6a917accf738c246a1212574fc7::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInite06ca6a917accf738c246a1212574fc7::$classMap;
}, null, ClassLoader::class);
}

View File

@ -1853,12 +1853,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-downgrade-php.git",
"reference": "da1013feacd1f27dbd414734fd2768d9258a5f7b"
"reference": "d5a52d643513c66fc23270aa4748a564508ccc1d"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/da1013feacd1f27dbd414734fd2768d9258a5f7b",
"reference": "da1013feacd1f27dbd414734fd2768d9258a5f7b",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-downgrade-php\/zipball\/d5a52d643513c66fc23270aa4748a564508ccc1d",
"reference": "d5a52d643513c66fc23270aa4748a564508ccc1d",
"shasum": ""
},
"require": {
@ -1883,7 +1883,7 @@
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1"
},
"time": "2022-10-26T11:10:13+00:00",
"time": "2022-11-19T11:55:01+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
@ -1913,7 +1913,7 @@
"description": "Rector downgrade PHP rules",
"support": {
"issues": "https:\/\/github.com\/rectorphp\/rector-downgrade-php\/issues",
"source": "https:\/\/github.com\/rectorphp\/rector-downgrade-php\/tree\/0.14.0"
"source": "https:\/\/github.com\/rectorphp\/rector-downgrade-php\/tree\/main"
},
"install-path": "..\/rector\/rector-downgrade-php"
},
@ -2061,12 +2061,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
"reference": "0a9fcc8a01a30eb3f0d9c34fcd927750ae501b68"
"reference": "b901b9305adf1720c066fcf08a67fdec705359ad"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/0a9fcc8a01a30eb3f0d9c34fcd927750ae501b68",
"reference": "0a9fcc8a01a30eb3f0d9c34fcd927750ae501b68",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/b901b9305adf1720c066fcf08a67fdec705359ad",
"reference": "b901b9305adf1720c066fcf08a67fdec705359ad",
"shasum": ""
},
"require": {
@ -2097,7 +2097,7 @@
"symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.1"
},
"time": "2022-11-19T11:42:30+00:00",
"time": "2022-11-19T11:51:56+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 bf394ee'), '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 da1013f'), 'rector/rector-php-parser' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-php-parser', 'relative_install_path' => '../../rector-php-parser', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9ea5f62'), '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 769064f'), '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 0a9fcc8'));
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 bf394ee'), '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 d5a52d6'), 'rector/rector-php-parser' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-php-parser', 'relative_install_path' => '../../rector-php-parser', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 9ea5f62'), '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 769064f'), '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 b901b93'));
private function __construct()
{
}

View File

@ -179,6 +179,9 @@ CODE_SAMPLE
private function hasNull(UnionType $unionType) : bool
{
foreach ($unionType->types as $type) {
if (!$type instanceof Identifier) {
continue;
}
if ($type->toLowerString() === 'null') {
return \true;
}