Skip to content

Commit

Permalink
Updated Rector to commit 03ed036
Browse files Browse the repository at this point in the history
rectorphp/rector-src@03ed036 [CodeQuality][Up_TO_PHP_81] Handle crash indentation on combination LevelSetList::UP_TO_PHP_81 with SetList::CODE_QUALITY - take 2 (#2763)
  • Loading branch information
TomasVotruba committed Aug 15, 2022
1 parent 3b5a718 commit 88ec8c8
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 14 deletions.
5 changes: 5 additions & 0 deletions rules/Php71/Rector/FuncCall/CountOnNullRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use PhpParser\Node\Stmt\Trait_;
use PHPStan\Analyser\Scope;
use PHPStan\Type\ArrayType;
use PHPStan\Type\ErrorType;
use PHPStan\Type\NullType;
use PHPStan\Type\Type;
use PHPStan\Type\UnionType;
Expand Down Expand Up @@ -177,6 +178,10 @@ private function shouldSkip(FuncCall $funcCall, Scope $scope) : bool
if (!$scope->hasVariableType($variableName)->yes()) {
return \true;
}
$nativeType = $scope->getNativeType($funcCall->args[0]->value);
if ($nativeType instanceof ErrorType) {
return \true;
}
return $this->variableAnalyzer->isStaticOrGlobal($funcCall->args[0]->value);
}
private function castToArray(Expr $countedExpr, FuncCall $funcCall) : FuncCall
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '1f6cea323ef7a3125c8fe56958e71ad4dd9944c7';
public const PACKAGE_VERSION = '03ed0369d06db544927966ec97b5f380a11e0751';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2022-08-15 20:31:51';
public const RELEASE_DATE = '2022-08-15 20:34:49';
/**
* @var int
*/
Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInitff69ad3dd9c3119a43b6dcd529d4ff78::getLoader();
return ComposerAutoloaderInit8e7585ed43eb293236e4ee3f043a7c84::getLoader();
14 changes: 7 additions & 7 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInitff69ad3dd9c3119a43b6dcd529d4ff78
class ComposerAutoloaderInit8e7585ed43eb293236e4ee3f043a7c84
{
private static $loader;

Expand All @@ -22,19 +22,19 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInitff69ad3dd9c3119a43b6dcd529d4ff78', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit8e7585ed43eb293236e4ee3f043a7c84', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInitff69ad3dd9c3119a43b6dcd529d4ff78', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit8e7585ed43eb293236e4ee3f043a7c84', 'loadClassLoader'));

require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInitff69ad3dd9c3119a43b6dcd529d4ff78::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit8e7585ed43eb293236e4ee3f043a7c84::getInitializer($loader));

$loader->setClassMapAuthoritative(true);
$loader->register(true);

$includeFiles = \Composer\Autoload\ComposerStaticInitff69ad3dd9c3119a43b6dcd529d4ff78::$files;
$includeFiles = \Composer\Autoload\ComposerStaticInit8e7585ed43eb293236e4ee3f043a7c84::$files;
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequireff69ad3dd9c3119a43b6dcd529d4ff78($fileIdentifier, $file);
composerRequire8e7585ed43eb293236e4ee3f043a7c84($fileIdentifier, $file);
}

return $loader;
Expand All @@ -46,7 +46,7 @@ public static function getLoader()
* @param string $file
* @return void
*/
function composerRequireff69ad3dd9c3119a43b6dcd529d4ff78($fileIdentifier, $file)
function composerRequire8e7585ed43eb293236e4ee3f043a7c84($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInitff69ad3dd9c3119a43b6dcd529d4ff78
class ComposerStaticInit8e7585ed43eb293236e4ee3f043a7c84
{
public static $files = array (
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
Expand Down Expand Up @@ -3250,9 +3250,9 @@ class ComposerStaticInitff69ad3dd9c3119a43b6dcd529d4ff78
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitff69ad3dd9c3119a43b6dcd529d4ff78::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitff69ad3dd9c3119a43b6dcd529d4ff78::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitff69ad3dd9c3119a43b6dcd529d4ff78::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit8e7585ed43eb293236e4ee3f043a7c84::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit8e7585ed43eb293236e4ee3f043a7c84::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit8e7585ed43eb293236e4ee3f043a7c84::$classMap;

}, null, ClassLoader::class);
}
Expand Down

0 comments on commit 88ec8c8

Please sign in to comment.