Updated Rector to commit d8a67258798255875bdd8d0d983d89d61e957c88

d8a6725879 NarrowUnionTypeDocRector should skip literal strings (#763)
This commit is contained in:
Tomas Votruba 2021-08-26 08:18:15 +00:00
parent e24c6f3de1
commit 6651eadd37
6 changed files with 21 additions and 20 deletions

View File

@ -5,6 +5,7 @@ namespace Rector\PHPStanStaticTypeMapper\TypeAnalyzer;
use PHPStan\Type\ArrayType;
use PHPStan\Type\BooleanType;
use PHPStan\Type\Constant\ConstantStringType;
use PHPStan\Type\FloatType;
use PHPStan\Type\IntegerType;
use PHPStan\Type\IterableType;
@ -84,7 +85,7 @@ final class UnionTypeAnalyzer
return \false;
}
foreach ($types as $type) {
if ($type instanceof \PHPStan\Type\StringType) {
if ($type instanceof \PHPStan\Type\StringType && !$type instanceof \PHPStan\Type\Constant\ConstantStringType) {
continue;
}
if ($type instanceof \PHPStan\Type\FloatType) {

View File

@ -16,11 +16,11 @@ final class VersionResolver
/**
* @var string
*/
public const PACKAGE_VERSION = '47ad54dfc8bbeed5880ba95c0424dd41a01d209b';
public const PACKAGE_VERSION = 'd8a67258798255875bdd8d0d983d89d61e957c88';
/**
* @var string
*/
public const RELEASE_DATE = '2021-08-26 09:51:06';
public const RELEASE_DATE = '2021-08-26 10:05:50';
public static function resolvePackageVersion() : string
{
$process = new \RectorPrefix20210826\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);

2
vendor/autoload.php vendored
View File

@ -4,4 +4,4 @@
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit748e079cf6a075bf8e8448288f686061::getLoader();
return ComposerAutoloaderInitc2f52277e365dea359bfa3d24ee3a694::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit748e079cf6a075bf8e8448288f686061
class ComposerAutoloaderInitc2f52277e365dea359bfa3d24ee3a694
{
private static $loader;
@ -22,15 +22,15 @@ class ComposerAutoloaderInit748e079cf6a075bf8e8448288f686061
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit748e079cf6a075bf8e8448288f686061', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInitc2f52277e365dea359bfa3d24ee3a694', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
spl_autoload_unregister(array('ComposerAutoloaderInit748e079cf6a075bf8e8448288f686061', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInitc2f52277e365dea359bfa3d24ee3a694', '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\ComposerStaticInit748e079cf6a075bf8e8448288f686061::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInitc2f52277e365dea359bfa3d24ee3a694::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
@ -42,19 +42,19 @@ class ComposerAutoloaderInit748e079cf6a075bf8e8448288f686061
$loader->register(true);
if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInit748e079cf6a075bf8e8448288f686061::$files;
$includeFiles = Composer\Autoload\ComposerStaticInitc2f52277e365dea359bfa3d24ee3a694::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire748e079cf6a075bf8e8448288f686061($fileIdentifier, $file);
composerRequirec2f52277e365dea359bfa3d24ee3a694($fileIdentifier, $file);
}
return $loader;
}
}
function composerRequire748e079cf6a075bf8e8448288f686061($fileIdentifier, $file)
function composerRequirec2f52277e365dea359bfa3d24ee3a694($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInit748e079cf6a075bf8e8448288f686061
class ComposerStaticInitc2f52277e365dea359bfa3d24ee3a694
{
public static $files = array (
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
@ -3858,9 +3858,9 @@ class ComposerStaticInit748e079cf6a075bf8e8448288f686061
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit748e079cf6a075bf8e8448288f686061::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit748e079cf6a075bf8e8448288f686061::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit748e079cf6a075bf8e8448288f686061::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInitc2f52277e365dea359bfa3d24ee3a694::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitc2f52277e365dea359bfa3d24ee3a694::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitc2f52277e365dea359bfa3d24ee3a694::$classMap;
}, null, ClassLoader::class);
}

View File

@ -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('RectorPrefix20210826\AutoloadIncluder');
}
if (!class_exists('ComposerAutoloaderInit748e079cf6a075bf8e8448288f686061', false) && !interface_exists('ComposerAutoloaderInit748e079cf6a075bf8e8448288f686061', false) && !trait_exists('ComposerAutoloaderInit748e079cf6a075bf8e8448288f686061', false)) {
spl_autoload_call('RectorPrefix20210826\ComposerAutoloaderInit748e079cf6a075bf8e8448288f686061');
if (!class_exists('ComposerAutoloaderInitc2f52277e365dea359bfa3d24ee3a694', false) && !interface_exists('ComposerAutoloaderInitc2f52277e365dea359bfa3d24ee3a694', false) && !trait_exists('ComposerAutoloaderInitc2f52277e365dea359bfa3d24ee3a694', false)) {
spl_autoload_call('RectorPrefix20210826\ComposerAutoloaderInitc2f52277e365dea359bfa3d24ee3a694');
}
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('RectorPrefix20210826\Helmich\TypoScriptParser\Parser\AST\Statement');
@ -3311,9 +3311,9 @@ if (!function_exists('print_node')) {
return \RectorPrefix20210826\print_node(...func_get_args());
}
}
if (!function_exists('composerRequire748e079cf6a075bf8e8448288f686061')) {
function composerRequire748e079cf6a075bf8e8448288f686061() {
return \RectorPrefix20210826\composerRequire748e079cf6a075bf8e8448288f686061(...func_get_args());
if (!function_exists('composerRequirec2f52277e365dea359bfa3d24ee3a694')) {
function composerRequirec2f52277e365dea359bfa3d24ee3a694() {
return \RectorPrefix20210826\composerRequirec2f52277e365dea359bfa3d24ee3a694(...func_get_args());
}
}
if (!function_exists('parseArgs')) {