Updated Rector to commit 933eb1353d193ca90bdb02265039469c620ad46f

933eb1353d [Php81] Handle crash on Crypt() single arg on NullToStrictStringFuncCallArgRector (#2767)
This commit is contained in:
Tomas Votruba 2022-08-15 18:34:46 +00:00
parent 6c0394fa59
commit 9fdeacaeee
5 changed files with 18 additions and 18 deletions

View File

@ -144,6 +144,9 @@ CODE_SAMPLE
*/
private function processNullToStrictStringOnNodePosition(FuncCall $funcCall, array $args, $position) : ?FuncCall
{
if (!isset($args[$position])) {
return null;
}
$argValue = $args[$position]->value;
if ($argValue instanceof ConstFetch && $this->valueResolver->isNull($argValue)) {
$args[$position]->value = new String_('');
@ -154,10 +157,7 @@ CODE_SAMPLE
if ($this->nodeTypeAnalyzer->isStringyType($type)) {
return null;
}
if (!$type instanceof MixedType) {
return null;
}
if ($argValue instanceof Encapsed) {
if (!$type instanceof MixedType || $argValue instanceof Encapsed) {
return null;
}
if ($this->isAnErrorTypeFromParentScope($argValue)) {

View File

@ -17,12 +17,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '128cc91038c48bb5a10901447820bcf9676512ba';
public const PACKAGE_VERSION = '933eb1353d193ca90bdb02265039469c620ad46f';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2022-08-14 14:38:06';
public const RELEASE_DATE = '2022-08-15 20:29:45';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

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

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit9a2b8afaa3de58dc3ec20c1afc4d9a20
class ComposerAutoloaderInit0b15c78ce0d00bb03bcf1e3fa7211fcd
{
private static $loader;
@ -22,19 +22,19 @@ class ComposerAutoloaderInit9a2b8afaa3de58dc3ec20c1afc4d9a20
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit9a2b8afaa3de58dc3ec20c1afc4d9a20', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit0b15c78ce0d00bb03bcf1e3fa7211fcd', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit9a2b8afaa3de58dc3ec20c1afc4d9a20', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit0b15c78ce0d00bb03bcf1e3fa7211fcd', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit9a2b8afaa3de58dc3ec20c1afc4d9a20::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit0b15c78ce0d00bb03bcf1e3fa7211fcd::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$includeFiles = \Composer\Autoload\ComposerStaticInit9a2b8afaa3de58dc3ec20c1afc4d9a20::$files;
$includeFiles = \Composer\Autoload\ComposerStaticInit0b15c78ce0d00bb03bcf1e3fa7211fcd::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire9a2b8afaa3de58dc3ec20c1afc4d9a20($fileIdentifier, $file);
composerRequire0b15c78ce0d00bb03bcf1e3fa7211fcd($fileIdentifier, $file);
}
return $loader;
@ -46,7 +46,7 @@ class ComposerAutoloaderInit9a2b8afaa3de58dc3ec20c1afc4d9a20
* @param string $file
* @return void
*/
function composerRequire9a2b8afaa3de58dc3ec20c1afc4d9a20($fileIdentifier, $file)
function composerRequire0b15c78ce0d00bb03bcf1e3fa7211fcd($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 ComposerStaticInit9a2b8afaa3de58dc3ec20c1afc4d9a20
class ComposerStaticInit0b15c78ce0d00bb03bcf1e3fa7211fcd
{
public static $files = array (
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
@ -3250,9 +3250,9 @@ class ComposerStaticInit9a2b8afaa3de58dc3ec20c1afc4d9a20
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit9a2b8afaa3de58dc3ec20c1afc4d9a20::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit9a2b8afaa3de58dc3ec20c1afc4d9a20::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit9a2b8afaa3de58dc3ec20c1afc4d9a20::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit0b15c78ce0d00bb03bcf1e3fa7211fcd::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit0b15c78ce0d00bb03bcf1e3fa7211fcd::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit0b15c78ce0d00bb03bcf1e3fa7211fcd::$classMap;
}, null, ClassLoader::class);
}