mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit f5a06553ce
f5a06553ce
[CodeQuality] Add InlineIsAInstanceOfRector (#2364)
This commit is contained in:
parent
74a2d071eb
commit
bcf77dc873
|
@ -32,6 +32,7 @@ use Rector\CodeQuality\Rector\FuncCall\ArrayMergeOfNonArraysToSimpleArrayRector;
|
|||
use Rector\CodeQuality\Rector\FuncCall\CallUserFuncWithArrowFunctionToInlineRector;
|
||||
use Rector\CodeQuality\Rector\FuncCall\ChangeArrayPushToArrayAssignRector;
|
||||
use Rector\CodeQuality\Rector\FuncCall\CompactToVariablesRector;
|
||||
use Rector\CodeQuality\Rector\FuncCall\InlineIsAInstanceOfRector;
|
||||
use Rector\CodeQuality\Rector\FuncCall\IntvalToTypeCastRector;
|
||||
use Rector\CodeQuality\Rector\FuncCall\IsAWithStringWithThirdArgumentRector;
|
||||
use Rector\CodeQuality\Rector\FuncCall\RemoveSoleValueSprintfRector;
|
||||
|
@ -160,23 +161,5 @@ return static function (\Rector\Config\RectorConfig $rectorConfig) : void {
|
|||
'mbstrrpos' => 'mb_strrpos',
|
||||
'mbsubstr' => 'mb_substr',
|
||||
]);
|
||||
$rectorConfig->rule(\Rector\CodeQuality\Rector\FuncCall\SetTypeToCastRector::class);
|
||||
$rectorConfig->rule(\Rector\CodeQuality\Rector\LogicalAnd\LogicalToBooleanRector::class);
|
||||
$rectorConfig->rule(\Rector\Php52\Rector\Property\VarToPublicPropertyRector::class);
|
||||
$rectorConfig->rule(\Rector\CodeQuality\Rector\Isset_\IssetOnPropertyObjectToPropertyExistsRector::class);
|
||||
$rectorConfig->rule(\Rector\CodeQuality\Rector\New_\NewStaticToNewSelfRector::class);
|
||||
$rectorConfig->rule(\Rector\CodeQuality\Rector\ClassMethod\DateTimeToDateTimeInterfaceRector::class);
|
||||
$rectorConfig->rule(\Rector\CodeQuality\Rector\FuncCall\UnwrapSprintfOneArgumentRector::class);
|
||||
$rectorConfig->rule(\Rector\CodeQuality\Rector\Ternary\SwitchNegatedTernaryRector::class);
|
||||
$rectorConfig->rule(\Rector\CodeQuality\Rector\Switch_\SingularSwitchToIfRector::class);
|
||||
$rectorConfig->rule(\Rector\CodeQuality\Rector\If_\SimplifyIfNullableReturnRector::class);
|
||||
$rectorConfig->rule(\Rector\CodeQuality\Rector\ClassMethod\NarrowUnionTypeDocRector::class);
|
||||
$rectorConfig->rule(\Rector\CodingStyle\Rector\ClassMethod\FuncGetArgsToVariadicParamRector::class);
|
||||
$rectorConfig->rule(\Rector\CodingStyle\Rector\FuncCall\CallUserFuncToMethodCallRector::class);
|
||||
$rectorConfig->rule(\Rector\CodeQuality\Rector\FuncCall\CallUserFuncWithArrowFunctionToInlineRector::class);
|
||||
$rectorConfig->rule(\Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector::class);
|
||||
$rectorConfig->rule(\Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector::class);
|
||||
$rectorConfig->rule(\Rector\CodeQuality\Rector\PropertyFetch\ExplicitMethodCallOverMagicGetSetRector::class);
|
||||
$rectorConfig->rule(\Rector\CodeQuality\Rector\Do_\DoWhileBreakFalseToIfElseRector::class);
|
||||
$rectorConfig->rule(\Rector\CodeQuality\Rector\ClassMethod\InlineArrayReturnAssignRector::class);
|
||||
$rectorConfig->rules([\Rector\CodeQuality\Rector\FuncCall\SetTypeToCastRector::class, \Rector\CodeQuality\Rector\LogicalAnd\LogicalToBooleanRector::class, \Rector\Php52\Rector\Property\VarToPublicPropertyRector::class, \Rector\CodeQuality\Rector\Isset_\IssetOnPropertyObjectToPropertyExistsRector::class, \Rector\CodeQuality\Rector\New_\NewStaticToNewSelfRector::class, \Rector\CodeQuality\Rector\ClassMethod\DateTimeToDateTimeInterfaceRector::class, \Rector\CodeQuality\Rector\FuncCall\UnwrapSprintfOneArgumentRector::class, \Rector\CodeQuality\Rector\Ternary\SwitchNegatedTernaryRector::class, \Rector\CodeQuality\Rector\Switch_\SingularSwitchToIfRector::class, \Rector\CodeQuality\Rector\If_\SimplifyIfNullableReturnRector::class, \Rector\CodeQuality\Rector\ClassMethod\NarrowUnionTypeDocRector::class, \Rector\CodingStyle\Rector\ClassMethod\FuncGetArgsToVariadicParamRector::class, \Rector\CodingStyle\Rector\FuncCall\CallUserFuncToMethodCallRector::class, \Rector\CodeQuality\Rector\FuncCall\CallUserFuncWithArrowFunctionToInlineRector::class, \Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector::class, \Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector::class, \Rector\CodeQuality\Rector\PropertyFetch\ExplicitMethodCallOverMagicGetSetRector::class, \Rector\CodeQuality\Rector\Do_\DoWhileBreakFalseToIfElseRector::class, \Rector\CodeQuality\Rector\ClassMethod\InlineArrayReturnAssignRector::class, \Rector\CodeQuality\Rector\FuncCall\InlineIsAInstanceOfRector::class]);
|
||||
};
|
||||
|
|
|
@ -0,0 +1,94 @@
|
|||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace Rector\CodeQuality\Rector\FuncCall;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Expr;
|
||||
use PhpParser\Node\Expr\ClassConstFetch;
|
||||
use PhpParser\Node\Expr\FuncCall;
|
||||
use PhpParser\Node\Expr\Instanceof_;
|
||||
use PhpParser\Node\Name\FullyQualified;
|
||||
use PHPStan\Type\Generic\GenericClassStringType;
|
||||
use PHPStan\Type\ObjectType;
|
||||
use PHPStan\Type\ObjectWithoutClassType;
|
||||
use PHPStan\Type\TypeWithClassName;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
|
||||
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
|
||||
/**
|
||||
* @see \Rector\Tests\CodeQuality\Rector\FuncCall\InlineIsAInstanceOfRector\InlineIsAInstanceOfRectorTest
|
||||
*/
|
||||
final class InlineIsAInstanceOfRector extends \Rector\Core\Rector\AbstractRector
|
||||
{
|
||||
public function getRuleDefinition() : \Symplify\RuleDocGenerator\ValueObject\RuleDefinition
|
||||
{
|
||||
return new \Symplify\RuleDocGenerator\ValueObject\RuleDefinition('Change is_a() with object and class name check to instanceof', [new \Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample(<<<'CODE_SAMPLE'
|
||||
class SomeClass
|
||||
{
|
||||
public function run(object $object)
|
||||
{
|
||||
return is_a($object, SomeType::class);
|
||||
}
|
||||
}
|
||||
CODE_SAMPLE
|
||||
, <<<'CODE_SAMPLE'
|
||||
class SomeClass
|
||||
{
|
||||
public function run(object $object)
|
||||
{
|
||||
return $object instanceof SomeType;
|
||||
}
|
||||
}
|
||||
CODE_SAMPLE
|
||||
)]);
|
||||
}
|
||||
/**
|
||||
* @return array<class-string<Node>>
|
||||
*/
|
||||
public function getNodeTypes() : array
|
||||
{
|
||||
return [\PhpParser\Node\Expr\FuncCall::class];
|
||||
}
|
||||
/**
|
||||
* @param FuncCall $node
|
||||
*/
|
||||
public function refactor(\PhpParser\Node $node) : ?\PhpParser\Node
|
||||
{
|
||||
if (!$this->isName($node->name, 'is_a')) {
|
||||
return null;
|
||||
}
|
||||
$args = $node->getArgs();
|
||||
$firstArgValue = $args[0]->value;
|
||||
if (!$this->isFirstObjectType($firstArgValue)) {
|
||||
return null;
|
||||
}
|
||||
$className = $this->resolveClassName($args[1]->value);
|
||||
if ($className === null) {
|
||||
return null;
|
||||
}
|
||||
return new \PhpParser\Node\Expr\Instanceof_($firstArgValue, new \PhpParser\Node\Name\FullyQualified($className));
|
||||
}
|
||||
private function resolveClassName(\PhpParser\Node\Expr $expr) : ?string
|
||||
{
|
||||
if (!$expr instanceof \PhpParser\Node\Expr\ClassConstFetch) {
|
||||
return null;
|
||||
}
|
||||
$type = $this->getType($expr);
|
||||
if ($type instanceof \PHPStan\Type\Generic\GenericClassStringType) {
|
||||
$type = $type->getGenericType();
|
||||
}
|
||||
if (!$type instanceof \PHPStan\Type\TypeWithClassName) {
|
||||
return null;
|
||||
}
|
||||
return $type->getClassName();
|
||||
}
|
||||
private function isFirstObjectType(\PhpParser\Node\Expr $expr) : bool
|
||||
{
|
||||
$exprType = $this->getType($expr);
|
||||
if ($exprType instanceof \PHPStan\Type\ObjectWithoutClassType) {
|
||||
return \true;
|
||||
}
|
||||
return $exprType instanceof \PHPStan\Type\ObjectType;
|
||||
}
|
||||
}
|
|
@ -16,11 +16,11 @@ final class VersionResolver
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = '3da22b0231b4d787b5b2d06656a3133b9dcbd31a';
|
||||
public const PACKAGE_VERSION = 'f5a06553ce4e9b77a9c99c30914461ca42de3f17';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-05-26 09:13:59';
|
||||
public const RELEASE_DATE = '2022-05-27 00:01:06';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
// autoload.php @generated by Composer
|
||||
|
||||
if (PHP_VERSION_ID < 50600) {
|
||||
echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit98ad0876ed82023e4c615d9a70bd3229::getLoader();
|
||||
return ComposerAutoloaderInit673d2e22634be666b0e0d26825665f09::getLoader();
|
||||
|
|
|
@ -19,6 +19,8 @@ use RectorPrefix20220526\Composer\Semver\VersionParser;
|
|||
* See also https://getcomposer.org/doc/07-runtime.md#installed-versions
|
||||
*
|
||||
* To require its presence, you can require `composer-runtime-api ^2.0`
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class InstalledVersions
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_classmap.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$vendorDir = dirname(__DIR__);
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
|
@ -1510,6 +1510,7 @@ return array(
|
|||
'Rector\\CodeQuality\\Rector\\FuncCall\\CallUserFuncWithArrowFunctionToInlineRector' => $baseDir . '/rules/CodeQuality/Rector/FuncCall/CallUserFuncWithArrowFunctionToInlineRector.php',
|
||||
'Rector\\CodeQuality\\Rector\\FuncCall\\ChangeArrayPushToArrayAssignRector' => $baseDir . '/rules/CodeQuality/Rector/FuncCall/ChangeArrayPushToArrayAssignRector.php',
|
||||
'Rector\\CodeQuality\\Rector\\FuncCall\\CompactToVariablesRector' => $baseDir . '/rules/CodeQuality/Rector/FuncCall/CompactToVariablesRector.php',
|
||||
'Rector\\CodeQuality\\Rector\\FuncCall\\InlineIsAInstanceOfRector' => $baseDir . '/rules/CodeQuality/Rector/FuncCall/InlineIsAInstanceOfRector.php',
|
||||
'Rector\\CodeQuality\\Rector\\FuncCall\\IntvalToTypeCastRector' => $baseDir . '/rules/CodeQuality/Rector/FuncCall/IntvalToTypeCastRector.php',
|
||||
'Rector\\CodeQuality\\Rector\\FuncCall\\IsAWithStringWithThirdArgumentRector' => $baseDir . '/rules/CodeQuality/Rector/FuncCall/IsAWithStringWithThirdArgumentRector.php',
|
||||
'Rector\\CodeQuality\\Rector\\FuncCall\\RemoveSoleValueSprintfRector' => $baseDir . '/rules/CodeQuality/Rector/FuncCall/RemoveSoleValueSprintfRector.php',
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_files.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$vendorDir = dirname(__DIR__);
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_namespaces.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$vendorDir = dirname(__DIR__);
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_psr4.php @generated by Composer
|
||||
|
||||
$vendorDir = dirname(dirname(__FILE__));
|
||||
$vendorDir = dirname(__DIR__);
|
||||
$baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit98ad0876ed82023e4c615d9a70bd3229
|
||||
class ComposerAutoloaderInit673d2e22634be666b0e0d26825665f09
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,32 +22,19 @@ class ComposerAutoloaderInit98ad0876ed82023e4c615d9a70bd3229
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit98ad0876ed82023e4c615d9a70bd3229', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit98ad0876ed82023e4c615d9a70bd3229', 'loadClassLoader'));
|
||||
spl_autoload_register(array('ComposerAutoloaderInit673d2e22634be666b0e0d26825665f09', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit673d2e22634be666b0e0d26825665f09', 'loadClassLoader'));
|
||||
|
||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
||||
if ($useStaticLoader) {
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit98ad0876ed82023e4c615d9a70bd3229::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
$loader->addClassMap($classMap);
|
||||
}
|
||||
}
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit673d2e22634be666b0e0d26825665f09::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit98ad0876ed82023e4c615d9a70bd3229::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit673d2e22634be666b0e0d26825665f09::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire98ad0876ed82023e4c615d9a70bd3229($fileIdentifier, $file);
|
||||
composerRequire673d2e22634be666b0e0d26825665f09($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
|
@ -59,7 +46,7 @@ class ComposerAutoloaderInit98ad0876ed82023e4c615d9a70bd3229
|
|||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequire98ad0876ed82023e4c615d9a70bd3229($fileIdentifier, $file)
|
||||
function composerRequire673d2e22634be666b0e0d26825665f09($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit98ad0876ed82023e4c615d9a70bd3229
|
||||
class ComposerStaticInit673d2e22634be666b0e0d26825665f09
|
||||
{
|
||||
public static $files = array (
|
||||
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
||||
|
@ -1879,6 +1879,7 @@ class ComposerStaticInit98ad0876ed82023e4c615d9a70bd3229
|
|||
'Rector\\CodeQuality\\Rector\\FuncCall\\CallUserFuncWithArrowFunctionToInlineRector' => __DIR__ . '/../..' . '/rules/CodeQuality/Rector/FuncCall/CallUserFuncWithArrowFunctionToInlineRector.php',
|
||||
'Rector\\CodeQuality\\Rector\\FuncCall\\ChangeArrayPushToArrayAssignRector' => __DIR__ . '/../..' . '/rules/CodeQuality/Rector/FuncCall/ChangeArrayPushToArrayAssignRector.php',
|
||||
'Rector\\CodeQuality\\Rector\\FuncCall\\CompactToVariablesRector' => __DIR__ . '/../..' . '/rules/CodeQuality/Rector/FuncCall/CompactToVariablesRector.php',
|
||||
'Rector\\CodeQuality\\Rector\\FuncCall\\InlineIsAInstanceOfRector' => __DIR__ . '/../..' . '/rules/CodeQuality/Rector/FuncCall/InlineIsAInstanceOfRector.php',
|
||||
'Rector\\CodeQuality\\Rector\\FuncCall\\IntvalToTypeCastRector' => __DIR__ . '/../..' . '/rules/CodeQuality/Rector/FuncCall/IntvalToTypeCastRector.php',
|
||||
'Rector\\CodeQuality\\Rector\\FuncCall\\IsAWithStringWithThirdArgumentRector' => __DIR__ . '/../..' . '/rules/CodeQuality/Rector/FuncCall/IsAWithStringWithThirdArgumentRector.php',
|
||||
'Rector\\CodeQuality\\Rector\\FuncCall\\RemoveSoleValueSprintfRector' => __DIR__ . '/../..' . '/rules/CodeQuality/Rector/FuncCall/RemoveSoleValueSprintfRector.php',
|
||||
|
@ -3914,9 +3915,9 @@ class ComposerStaticInit98ad0876ed82023e4c615d9a70bd3229
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit98ad0876ed82023e4c615d9a70bd3229::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit98ad0876ed82023e4c615d9a70bd3229::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit98ad0876ed82023e4c615d9a70bd3229::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit673d2e22634be666b0e0d26825665f09::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit673d2e22634be666b0e0d26825665f09::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit673d2e22634be666b0e0d26825665f09::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
|
@ -1099,17 +1099,17 @@
|
|||
},
|
||||
{
|
||||
"name": "phpstan\/phpstan",
|
||||
"version": "1.7.1",
|
||||
"version_normalized": "1.7.1.0",
|
||||
"version": "1.7.2",
|
||||
"version_normalized": "1.7.2.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/phpstan\/phpstan.git",
|
||||
"reference": "e3baed2ee2ef322e0f9b8fe8f87fdbe024c7c719"
|
||||
"reference": "c602f80d66ba425943b0f4aaa27010c822dd8f87"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/phpstan\/phpstan\/zipball\/e3baed2ee2ef322e0f9b8fe8f87fdbe024c7c719",
|
||||
"reference": "e3baed2ee2ef322e0f9b8fe8f87fdbe024c7c719",
|
||||
"url": "https:\/\/api.github.com\/repos\/phpstan\/phpstan\/zipball\/c602f80d66ba425943b0f4aaa27010c822dd8f87",
|
||||
"reference": "c602f80d66ba425943b0f4aaa27010c822dd8f87",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -1118,7 +1118,7 @@
|
|||
"conflict": {
|
||||
"phpstan\/phpstan-shim": "*"
|
||||
},
|
||||
"time": "2022-05-24T09:05:09+00:00",
|
||||
"time": "2022-05-26T12:59:20+00:00",
|
||||
"bin": [
|
||||
"phpstan",
|
||||
"phpstan.phar"
|
||||
|
@ -1137,7 +1137,7 @@
|
|||
"description": "PHPStan - PHP Static Analysis Tool",
|
||||
"support": {
|
||||
"issues": "https:\/\/github.com\/phpstan\/phpstan\/issues",
|
||||
"source": "https:\/\/github.com\/phpstan\/phpstan\/tree\/1.7.1"
|
||||
"source": "https:\/\/github.com\/phpstan\/phpstan\/tree\/1.7.2"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1,16 +1,16 @@
|
|||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQIzBAABCgAdFiEE0yaA1ZV9xxFr4pwUzxoQjQ565yAFAmKMn7kACgkQzxoQjQ56
|
||||
5yB8HA/8D+fvpnUSxiFULbEmPsP0aTkPg67DTELC0EPPNCMwh1boPAI1Nl61k4tN
|
||||
TiK7zqkwNzYKHTcHEX19+Bwo8WyqUp9MU03v8HrsTP8Tw155vUj3SZKcnvloyIQE
|
||||
eyEUG992GA1j18GpLSLyHIBzAt+N70fgO53Nou21vHsEnlmxjXGjowrrVWT/AjFD
|
||||
jJ17OtvLX0H5CHtGQLS1qaOvoOjkOf3eTC6EgjH7j7NO+TI/89qdp2MA9kr/xdCg
|
||||
Jxwn2ybqtkoIFlT/WgsyK+595y0yjMgxWouFFWIdmlkWOHH3AURsBWYGlBnzVOoM
|
||||
X2MvSEZNQCL7Nnobh5A98SDoliO8wx2GkIPfGWp6cxARZLd5akG3pfpsvAO1X+oI
|
||||
RSd52JFIK7GPrpFmgP43nZTg7OG0GhG+Gmiv7RfOx77HoeDAjwVTQD52jeguZJBn
|
||||
CJ4vfu57STkGcQjskuFPfu2AEPrNf3A9+g5ZvOmeR81ss3Wle5ZmSAHZ/IbVGUuY
|
||||
P93g/4x5tFiwLewS8SjIhxFSWiiYxwXT7cs3vb6GytPIRAbs0gvHwsvUQSmDU58P
|
||||
oInTK4rgrWwPvaoiz1xZ6s50Dl1ch2RVrCynzgQNksUBs1oJvB4pu82jOURQjuFX
|
||||
rkv8XATtD9kGEcB1QMWsp4MINGgeQfTYxXCHUisRMY6ADQ3TRA4=
|
||||
=PFW6
|
||||
iQIzBAABCgAdFiEE0yaA1ZV9xxFr4pwUzxoQjQ565yAFAmKPeZwACgkQzxoQjQ56
|
||||
5yAYmxAAnfmETFOcFSFM9441+nrtxVMnQOMJuyMfBTL6dgEYPVKBEJbQ8GrIHxXb
|
||||
eVGLrAe5uZ17uGnJvJHTqxETgA0YhtN1/sc+kt5B0tMy1riOFPCCe3snSUuZhTaP
|
||||
cubZ4+ZQjopI5klCBxx4XRFWuXMneq2TcHAnOWrzGoofgVVShvqzCRUYS2nq+esp
|
||||
W8NGZJ9oMVTO15ITbJKgk70dtzJA0wlPi04wf3kKSiO1cMnff0REgsmnctJyZOz3
|
||||
OFGEMAhwoFOkqLCyyL2EFySOPZ1OOCn5p/b7ENtCEfwDsbJDfmDsLB3KzJa+sRFL
|
||||
H3EQ5R3tm0s8RSM68tYheIHizIqRD9D6fH5jAp18EuEpDreRV0Qa6UkSXrwADwdu
|
||||
F3LbI9Re2doEeI335UawoKlz4unTFEEBSQDLkLTwZ9dDAOPdBa33LJ0LXpQ/INqL
|
||||
GlyKMvexktZhVlf4tu6UJYEvgDLYqsMw4mGhZ5IlEwmNW7O0LnEQzhjX0HOjz0l/
|
||||
UzmI0BObaYLsJl4Yf6eqgf97b5BoMb9EFpVVffDY/32PgkaaAVIuVaREXymdKzE0
|
||||
igZLdKaIlNUwCFPQr7wGznd2o+RpiM759DIwgHScxWaqAyGFiiujG+Xv3Dp1wd0c
|
||||
ZHnWhnC9gUI2dogxAw+ZV8lRasPRhqvGgDNG1+MXTpo3Gc1MAKg=
|
||||
=YGh2
|
||||
-----END PGP SIGNATURE-----
|
||||
|
|
|
@ -9,8 +9,8 @@ $loader = require_once __DIR__.'/autoload.php';
|
|||
if (!class_exists('AutoloadIncluder', false) && !interface_exists('AutoloadIncluder', false) && !trait_exists('AutoloadIncluder', false)) {
|
||||
spl_autoload_call('RectorPrefix20220526\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit98ad0876ed82023e4c615d9a70bd3229', false) && !interface_exists('ComposerAutoloaderInit98ad0876ed82023e4c615d9a70bd3229', false) && !trait_exists('ComposerAutoloaderInit98ad0876ed82023e4c615d9a70bd3229', false)) {
|
||||
spl_autoload_call('RectorPrefix20220526\ComposerAutoloaderInit98ad0876ed82023e4c615d9a70bd3229');
|
||||
if (!class_exists('ComposerAutoloaderInit673d2e22634be666b0e0d26825665f09', false) && !interface_exists('ComposerAutoloaderInit673d2e22634be666b0e0d26825665f09', false) && !trait_exists('ComposerAutoloaderInit673d2e22634be666b0e0d26825665f09', false)) {
|
||||
spl_autoload_call('RectorPrefix20220526\ComposerAutoloaderInit673d2e22634be666b0e0d26825665f09');
|
||||
}
|
||||
if (!class_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !interface_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false) && !trait_exists('Helmich\TypoScriptParser\Parser\AST\Statement', false)) {
|
||||
spl_autoload_call('RectorPrefix20220526\Helmich\TypoScriptParser\Parser\AST\Statement');
|
||||
|
@ -59,9 +59,9 @@ if (!function_exists('print_node')) {
|
|||
return \RectorPrefix20220526\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire98ad0876ed82023e4c615d9a70bd3229')) {
|
||||
function composerRequire98ad0876ed82023e4c615d9a70bd3229() {
|
||||
return \RectorPrefix20220526\composerRequire98ad0876ed82023e4c615d9a70bd3229(...func_get_args());
|
||||
if (!function_exists('composerRequire673d2e22634be666b0e0d26825665f09')) {
|
||||
function composerRequire673d2e22634be666b0e0d26825665f09() {
|
||||
return \RectorPrefix20220526\composerRequire673d2e22634be666b0e0d26825665f09(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('scanPath')) {
|
||||
|
|
Loading…
Reference in New Issue