Updated Rector to commit 58f00bfd68219a515d8ae49f2bbfcc6a55f8a575

58f00bfd68 [automated] Apply Coding Standard (#3550)
This commit is contained in:
Tomas Votruba 2023-04-02 00:35:49 +00:00
parent c04c8097dc
commit 4c6d730e14
6 changed files with 21 additions and 21 deletions

View File

@ -3,8 +3,8 @@
declare (strict_types=1);
namespace Rector\CodeQuality\Rector\Switch_;
use PhpParser\Node\Expr;
use PhpParser\Node;
use PhpParser\Node\Expr;
use PhpParser\Node\Stmt;
use PhpParser\Node\Stmt\Case_;
use PhpParser\Node\Stmt\If_;

View File

@ -58,14 +58,6 @@ final class AlwaysStrictScalarExprAnalyzer
$this->nodeComparator = $nodeComparator;
$this->nodeTypeResolver = $nodeTypeResolver;
}
private function resolveCastType(Cast $cast) : ?Type
{
$type = $this->nodeTypeResolver->getType($cast);
if ($this->isScalarType($type)) {
return $type;
}
return null;
}
public function matchStrictScalarExpr(Expr $expr) : ?Type
{
if ($expr instanceof Concat) {
@ -92,6 +84,14 @@ final class AlwaysStrictScalarExprAnalyzer
}
return $this->resolveIndirectReturnType($expr);
}
private function resolveCastType(Cast $cast) : ?Type
{
$type = $this->nodeTypeResolver->getType($cast);
if ($this->isScalarType($type)) {
return $type;
}
return null;
}
private function resolveIndirectReturnType(Expr $expr) : ?Type
{
if (!$expr instanceof Variable && !$expr instanceof PropertyFetch && !$expr instanceof StaticPropertyFetch) {

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '1f8d359d731ec0ecd4f92320626e74d2e1b41d05';
public const PACKAGE_VERSION = '58f00bfd68219a515d8ae49f2bbfcc6a55f8a575';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-04-02 00:29:29';
public const RELEASE_DATE = '2023-04-02 00:31:52';
/**
* @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 ComposerAutoloaderInit0c0fc61f84b93f1888d712a06ac764f1::getLoader();
return ComposerAutoloaderInit4740f43211e06a61d49d6bcc220d5374::getLoader();

View File

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