Updated Rector to commit 72815588219a43f3881295c77bd5c97239e4721a

7281558821 [TypeDeclaration] Skip @param int on StrictStringParamConcatRector (#4780)
This commit is contained in:
Tomas Votruba 2023-08-13 16:51:50 +00:00
parent 9891ab5633
commit 81362af021
5 changed files with 17 additions and 12 deletions

View File

@ -76,6 +76,7 @@ CODE_SAMPLE
return null;
}
$hasChanged = \false;
$phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($node);
foreach ($node->getParams() as $param) {
if ($param->type instanceof Node) {
continue;
@ -84,6 +85,10 @@ CODE_SAMPLE
if (!$variableConcattedFromParam instanceof Variable) {
continue;
}
$paramDocType = $phpDocInfo->getParamType($this->getName($param));
if (!$paramDocType instanceof MixedType && !$paramDocType->isString()->yes()) {
continue;
}
$nativeType = $this->nodeTypeResolver->getNativeType($variableConcattedFromParam);
if ($nativeType instanceof MixedType && $nativeType->getSubtractedType() instanceof Type && TypeCombinator::containsNull($nativeType->getSubtractedType())) {
$param->type = new NullableType(new Identifier('string'));

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '092b6115b0e0642d0c20836673415ece4a3d0084';
public const PACKAGE_VERSION = '72815588219a43f3881295c77bd5c97239e4721a';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-08-13 23:42:42';
public const RELEASE_DATE = '2023-08-13 23:48:38';
/**
* @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 ComposerAutoloaderInit4121cdca7a26a39791cc4143742fb7cb::getLoader();
return ComposerAutoloaderInit519d39a38bf4d0d8e73bb2c623f55275::getLoader();

View File

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