diff --git a/rules/TypeDeclaration/Rector/ClassMethod/StrictStringParamConcatRector.php b/rules/TypeDeclaration/Rector/ClassMethod/StrictStringParamConcatRector.php index ac5578506a0..8eafacc94e6 100644 --- a/rules/TypeDeclaration/Rector/ClassMethod/StrictStringParamConcatRector.php +++ b/rules/TypeDeclaration/Rector/ClassMethod/StrictStringParamConcatRector.php @@ -94,6 +94,9 @@ CODE_SAMPLE if ($functionLike->stmts === null) { return \false; } + if ($param->default instanceof Expr && !$this->getType($param->default)->isString()->yes()) { + return \false; + } $paramName = $this->getName($param); $isParamConcatted = \false; $this->traverseNodesWithCallable($functionLike->stmts, function (Node $node) use($paramName, &$isParamConcatted) : ?int { diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 0d1bffe92f4..8bf3d0af110 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '0.17.10'; + public const PACKAGE_VERSION = '25b6142f69577a83fc86fd4a3ddad57af470ba26'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-08-03 21:15:48'; + public const RELEASE_DATE = '2023-08-03 21:25:18'; /** * @var int */ diff --git a/vendor/autoload.php b/vendor/autoload.php index 09c230a8c5a..c46477d564c 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) { require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit441f7a0c9889e39270557d89f7db5234::getLoader(); +return ComposerAutoloaderInitf0e80ee6aec55dbed7080efbd3bec8fa::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index 012132b4088..7a0600dea65 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit441f7a0c9889e39270557d89f7db5234 +class ComposerAutoloaderInitf0e80ee6aec55dbed7080efbd3bec8fa { private static $loader; @@ -22,17 +22,17 @@ class ComposerAutoloaderInit441f7a0c9889e39270557d89f7db5234 return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit441f7a0c9889e39270557d89f7db5234', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInitf0e80ee6aec55dbed7080efbd3bec8fa', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); - spl_autoload_unregister(array('ComposerAutoloaderInit441f7a0c9889e39270557d89f7db5234', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInitf0e80ee6aec55dbed7080efbd3bec8fa', 'loadClassLoader')); require __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit441f7a0c9889e39270557d89f7db5234::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInitf0e80ee6aec55dbed7080efbd3bec8fa::getInitializer($loader)); $loader->setClassMapAuthoritative(true); $loader->register(true); - $filesToLoad = \Composer\Autoload\ComposerStaticInit441f7a0c9889e39270557d89f7db5234::$files; + $filesToLoad = \Composer\Autoload\ComposerStaticInitf0e80ee6aec55dbed7080efbd3bec8fa::$files; $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 43a81635c37..b5333286a4b 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit441f7a0c9889e39270557d89f7db5234 +class ComposerStaticInitf0e80ee6aec55dbed7080efbd3bec8fa { public static $files = array ( 'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php', @@ -3025,9 +3025,9 @@ class ComposerStaticInit441f7a0c9889e39270557d89f7db5234 public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit441f7a0c9889e39270557d89f7db5234::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit441f7a0c9889e39270557d89f7db5234::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit441f7a0c9889e39270557d89f7db5234::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInitf0e80ee6aec55dbed7080efbd3bec8fa::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInitf0e80ee6aec55dbed7080efbd3bec8fa::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInitf0e80ee6aec55dbed7080efbd3bec8fa::$classMap; }, null, ClassLoader::class); }