mirror of
https://github.com/rectorphp/rector.git
synced 2024-05-31 08:20:53 +00:00
parent
4fa3a45ce3
commit
7b2bf95199
|
@ -94,11 +94,13 @@ CODE_SAMPLE
|
|||
// ensure cast to (string) first to allow string like "8.0" value to be converted to the int value
|
||||
$this->phpVersionConstraint = $this->phpVersionFactory->createIntVersion((string) $phpVersionConstraint);
|
||||
$if = $this->betterNodeFinder->findParentType($node, \PhpParser\Node\Stmt\If_::class);
|
||||
if (!$if instanceof \PhpParser\Node\Stmt\If_) {
|
||||
return null;
|
||||
}
|
||||
$parent = $node->getAttribute(\Rector\NodeTypeResolver\Node\AttributeKey::PARENT_NODE);
|
||||
if ($this->shouldSkip($node, $if, $parent)) {
|
||||
return null;
|
||||
}
|
||||
/** @var If_ $if */
|
||||
if ($parent instanceof \PhpParser\Node\Expr\BinaryOp\Smaller) {
|
||||
return $this->processSmaller($node, $parent, $if);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,79 @@
|
|||
<?php
|
||||
|
||||
declare (strict_types=1);
|
||||
namespace Rector\TypeDeclaration\NodeAnalyzer;
|
||||
|
||||
use PhpParser\Node;
|
||||
use PhpParser\Node\Expr\FuncCall;
|
||||
use PhpParser\Node\Expr\MethodCall;
|
||||
use PhpParser\Node\Expr\StaticCall;
|
||||
use PhpParser\Node\Identifier;
|
||||
use PhpParser\Node\Name;
|
||||
use PhpParser\Node\NullableType;
|
||||
use PhpParser\Node\Stmt\Return_;
|
||||
use PhpParser\Node\UnionType as PhpParserUnionType;
|
||||
use PHPStan\Type\MixedType;
|
||||
use Rector\Core\Reflection\ReflectionResolver;
|
||||
use Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind;
|
||||
use Rector\StaticTypeMapper\StaticTypeMapper;
|
||||
final class ReturnStrictTypeAnalyzer
|
||||
{
|
||||
/**
|
||||
* @var \Rector\Core\Reflection\ReflectionResolver
|
||||
*/
|
||||
private $reflectionResolver;
|
||||
/**
|
||||
* @var \Rector\TypeDeclaration\NodeAnalyzer\TypeNodeUnwrapper
|
||||
*/
|
||||
private $typeNodeUnwrapper;
|
||||
/**
|
||||
* @var \Rector\StaticTypeMapper\StaticTypeMapper
|
||||
*/
|
||||
private $staticTypeMapper;
|
||||
public function __construct(\Rector\Core\Reflection\ReflectionResolver $reflectionResolver, \Rector\TypeDeclaration\NodeAnalyzer\TypeNodeUnwrapper $typeNodeUnwrapper, \Rector\StaticTypeMapper\StaticTypeMapper $staticTypeMapper)
|
||||
{
|
||||
$this->reflectionResolver = $reflectionResolver;
|
||||
$this->typeNodeUnwrapper = $typeNodeUnwrapper;
|
||||
$this->staticTypeMapper = $staticTypeMapper;
|
||||
}
|
||||
/**
|
||||
* @param Return_[] $returns
|
||||
* @return array<Identifier|Name|NullableType|PhpParserUnionType>
|
||||
*/
|
||||
public function collectStrictReturnTypes(array $returns) : array
|
||||
{
|
||||
$returnedStrictTypeNodes = [];
|
||||
foreach ($returns as $return) {
|
||||
if ($return->expr === null) {
|
||||
return [];
|
||||
}
|
||||
$returnedExpr = $return->expr;
|
||||
if ($returnedExpr instanceof \PhpParser\Node\Expr\MethodCall || $returnedExpr instanceof \PhpParser\Node\Expr\StaticCall || $returnedExpr instanceof \PhpParser\Node\Expr\FuncCall) {
|
||||
$returnNode = $this->resolveMethodCallReturnNode($returnedExpr);
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
if (!$returnNode instanceof \PhpParser\Node) {
|
||||
return [];
|
||||
}
|
||||
$returnedStrictTypeNodes[] = $returnNode;
|
||||
}
|
||||
return $this->typeNodeUnwrapper->uniquateNodes($returnedStrictTypeNodes);
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\FuncCall $call
|
||||
*/
|
||||
private function resolveMethodCallReturnNode($call) : ?\PhpParser\Node
|
||||
{
|
||||
$methodReflection = $this->reflectionResolver->resolveFunctionLikeReflectionFromCall($call);
|
||||
if ($methodReflection === null) {
|
||||
return null;
|
||||
}
|
||||
$parametersAcceptor = $methodReflection->getVariants()[0];
|
||||
$returnType = $parametersAcceptor->getReturnType();
|
||||
if ($returnType instanceof \PHPStan\Type\MixedType) {
|
||||
return null;
|
||||
}
|
||||
return $this->staticTypeMapper->mapPHPStanTypeToPhpParserNode($returnType, \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind::RETURN());
|
||||
}
|
||||
}
|
|
@ -26,6 +26,7 @@ use Rector\Core\Rector\AbstractRector;
|
|||
use Rector\Core\Reflection\ReflectionResolver;
|
||||
use Rector\Core\ValueObject\PhpVersionFeature;
|
||||
use Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind;
|
||||
use Rector\TypeDeclaration\NodeAnalyzer\ReturnStrictTypeAnalyzer;
|
||||
use Rector\TypeDeclaration\NodeAnalyzer\TypeNodeUnwrapper;
|
||||
use Rector\TypeDeclaration\TypeInferer\ReturnTypeInferer;
|
||||
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
|
||||
|
@ -40,17 +41,17 @@ final class ReturnTypeFromStrictTypedCallRector extends \Rector\Core\Rector\Abst
|
|||
*/
|
||||
private $typeNodeUnwrapper;
|
||||
/**
|
||||
* @var \Rector\Core\Reflection\ReflectionResolver
|
||||
* @var \Rector\TypeDeclaration\NodeAnalyzer\ReturnStrictTypeAnalyzer
|
||||
*/
|
||||
private $reflectionResolver;
|
||||
private $returnStrictTypeAnalyzer;
|
||||
/**
|
||||
* @var \Rector\TypeDeclaration\TypeInferer\ReturnTypeInferer
|
||||
*/
|
||||
private $returnTypeInferer;
|
||||
public function __construct(\Rector\TypeDeclaration\NodeAnalyzer\TypeNodeUnwrapper $typeNodeUnwrapper, \Rector\Core\Reflection\ReflectionResolver $reflectionResolver, \Rector\TypeDeclaration\TypeInferer\ReturnTypeInferer $returnTypeInferer)
|
||||
public function __construct(\Rector\TypeDeclaration\NodeAnalyzer\TypeNodeUnwrapper $typeNodeUnwrapper, \Rector\TypeDeclaration\NodeAnalyzer\ReturnStrictTypeAnalyzer $returnStrictTypeAnalyzer, \Rector\TypeDeclaration\TypeInferer\ReturnTypeInferer $returnTypeInferer)
|
||||
{
|
||||
$this->typeNodeUnwrapper = $typeNodeUnwrapper;
|
||||
$this->reflectionResolver = $reflectionResolver;
|
||||
$this->returnStrictTypeAnalyzer = $returnStrictTypeAnalyzer;
|
||||
$this->returnTypeInferer = $returnTypeInferer;
|
||||
}
|
||||
public function getRuleDefinition() : \Symplify\RuleDocGenerator\ValueObject\RuleDefinition
|
||||
|
@ -119,7 +120,7 @@ CODE_SAMPLE
|
|||
}
|
||||
return $n instanceof \PhpParser\Node\Stmt\Return_;
|
||||
});
|
||||
$returnedStrictTypes = $this->collectStrictReturnTypes($returns);
|
||||
$returnedStrictTypes = $this->returnStrictTypeAnalyzer->collectStrictReturnTypes($returns);
|
||||
if ($returnedStrictTypes === []) {
|
||||
return null;
|
||||
}
|
||||
|
@ -174,46 +175,6 @@ CODE_SAMPLE
|
|||
}
|
||||
return $node instanceof \PhpParser\Node\Stmt\ClassMethod && $node->isMagic();
|
||||
}
|
||||
/**
|
||||
* @param Return_[] $returns
|
||||
* @return array<Identifier|Name|NullableType|PhpParserUnionType>
|
||||
*/
|
||||
private function collectStrictReturnTypes(array $returns) : array
|
||||
{
|
||||
$returnedStrictTypeNodes = [];
|
||||
foreach ($returns as $return) {
|
||||
if ($return->expr === null) {
|
||||
return [];
|
||||
}
|
||||
$returnedExpr = $return->expr;
|
||||
if ($returnedExpr instanceof \PhpParser\Node\Expr\MethodCall || $returnedExpr instanceof \PhpParser\Node\Expr\StaticCall || $returnedExpr instanceof \PhpParser\Node\Expr\FuncCall) {
|
||||
$returnNode = $this->resolveMethodCallReturnNode($returnedExpr);
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
if (!$returnNode instanceof \PhpParser\Node) {
|
||||
return [];
|
||||
}
|
||||
$returnedStrictTypeNodes[] = $returnNode;
|
||||
}
|
||||
return $this->typeNodeUnwrapper->uniquateNodes($returnedStrictTypeNodes);
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Expr\MethodCall|\PhpParser\Node\Expr\StaticCall|\PhpParser\Node\Expr\FuncCall $call
|
||||
*/
|
||||
private function resolveMethodCallReturnNode($call) : ?\PhpParser\Node
|
||||
{
|
||||
$methodReflection = $this->reflectionResolver->resolveFunctionLikeReflectionFromCall($call);
|
||||
if ($methodReflection === null) {
|
||||
return null;
|
||||
}
|
||||
$parametersAcceptor = $methodReflection->getVariants()[0];
|
||||
$returnType = $parametersAcceptor->getReturnType();
|
||||
if ($returnType instanceof \PHPStan\Type\MixedType) {
|
||||
return null;
|
||||
}
|
||||
return $this->staticTypeMapper->mapPHPStanTypeToPhpParserNode($returnType, \Rector\PHPStanStaticTypeMapper\ValueObject\TypeKind::RETURN());
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Identifier|\PhpParser\Node\Name|\PhpParser\Node\NullableType|PhpParserUnionType $returnedStrictTypeNode
|
||||
* @param \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_|\PhpParser\Node\Expr\Closure $functionLike
|
||||
|
|
|
@ -16,11 +16,11 @@ final class VersionResolver
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'bc541b6a684262fbcdfdb16d6e2a804c852ea1a9';
|
||||
public const PACKAGE_VERSION = 'd3f814ca27b9cd41b65c9eb455761ee316b3fa01';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2021-07-17 17:41:13';
|
||||
public const RELEASE_DATE = '2021-07-17 19:14:37';
|
||||
public static function resolvePackageVersion() : string
|
||||
{
|
||||
$process = new \RectorPrefix20210717\Symfony\Component\Process\Process(['git', 'log', '--pretty="%H"', '-n1', 'HEAD'], __DIR__);
|
||||
|
|
|
@ -65,6 +65,7 @@ final class BetterNodeFinder
|
|||
/**
|
||||
* @template T of Node
|
||||
* @param class-string<T> $type
|
||||
* @return T|null
|
||||
*/
|
||||
public function findParentType(\PhpParser\Node $node, string $type) : ?\PhpParser\Node
|
||||
{
|
||||
|
|
2
vendor/autoload.php
vendored
2
vendor/autoload.php
vendored
|
@ -4,4 +4,4 @@
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit6c214e5c51e1718ae2867d2df74a9dd6::getLoader();
|
||||
return ComposerAutoloaderInitb4754d1b7c024aacda44819b413b2d8b::getLoader();
|
||||
|
|
1
vendor/composer/autoload_classmap.php
vendored
1
vendor/composer/autoload_classmap.php
vendored
|
@ -3115,6 +3115,7 @@ return array(
|
|||
'Rector\\TypeDeclaration\\NodeAnalyzer\\CallTypesResolver' => $baseDir . '/rules/TypeDeclaration/NodeAnalyzer/CallTypesResolver.php',
|
||||
'Rector\\TypeDeclaration\\NodeAnalyzer\\ClassMethodAndPropertyAnalyzer' => $baseDir . '/rules/TypeDeclaration/NodeAnalyzer/ClassMethodAndPropertyAnalyzer.php',
|
||||
'Rector\\TypeDeclaration\\NodeAnalyzer\\ClassMethodParamTypeCompleter' => $baseDir . '/rules/TypeDeclaration/NodeAnalyzer/ClassMethodParamTypeCompleter.php',
|
||||
'Rector\\TypeDeclaration\\NodeAnalyzer\\ReturnStrictTypeAnalyzer' => $baseDir . '/rules/TypeDeclaration/NodeAnalyzer/ReturnStrictTypeAnalyzer.php',
|
||||
'Rector\\TypeDeclaration\\NodeAnalyzer\\TypeNodeUnwrapper' => $baseDir . '/rules/TypeDeclaration/NodeAnalyzer/TypeNodeUnwrapper.php',
|
||||
'Rector\\TypeDeclaration\\NodeTypeAnalyzer\\CallTypeAnalyzer' => $baseDir . '/rules/TypeDeclaration/NodeTypeAnalyzer/CallTypeAnalyzer.php',
|
||||
'Rector\\TypeDeclaration\\NodeTypeAnalyzer\\ChildTypeResolver' => $baseDir . '/rules/TypeDeclaration/NodeTypeAnalyzer/ChildTypeResolver.php',
|
||||
|
|
14
vendor/composer/autoload_real.php
vendored
14
vendor/composer/autoload_real.php
vendored
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInit6c214e5c51e1718ae2867d2df74a9dd6
|
||||
class ComposerAutoloaderInitb4754d1b7c024aacda44819b413b2d8b
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,15 +22,15 @@ class ComposerAutoloaderInit6c214e5c51e1718ae2867d2df74a9dd6
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInit6c214e5c51e1718ae2867d2df74a9dd6', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInitb4754d1b7c024aacda44819b413b2d8b', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit6c214e5c51e1718ae2867d2df74a9dd6', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitb4754d1b7c024aacda44819b413b2d8b', '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\ComposerStaticInit6c214e5c51e1718ae2867d2df74a9dd6::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitb4754d1b7c024aacda44819b413b2d8b::getInitializer($loader));
|
||||
} else {
|
||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
||||
if ($classMap) {
|
||||
|
@ -42,19 +42,19 @@ class ComposerAutoloaderInit6c214e5c51e1718ae2867d2df74a9dd6
|
|||
$loader->register(true);
|
||||
|
||||
if ($useStaticLoader) {
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInit6c214e5c51e1718ae2867d2df74a9dd6::$files;
|
||||
$includeFiles = Composer\Autoload\ComposerStaticInitb4754d1b7c024aacda44819b413b2d8b::$files;
|
||||
} else {
|
||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
||||
}
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequire6c214e5c51e1718ae2867d2df74a9dd6($fileIdentifier, $file);
|
||||
composerRequireb4754d1b7c024aacda44819b413b2d8b($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
}
|
||||
}
|
||||
|
||||
function composerRequire6c214e5c51e1718ae2867d2df74a9dd6($fileIdentifier, $file)
|
||||
function composerRequireb4754d1b7c024aacda44819b413b2d8b($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
require $file;
|
||||
|
|
9
vendor/composer/autoload_static.php
vendored
9
vendor/composer/autoload_static.php
vendored
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInit6c214e5c51e1718ae2867d2df74a9dd6
|
||||
class ComposerStaticInitb4754d1b7c024aacda44819b413b2d8b
|
||||
{
|
||||
public static $files = array (
|
||||
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
||||
|
@ -3470,6 +3470,7 @@ class ComposerStaticInit6c214e5c51e1718ae2867d2df74a9dd6
|
|||
'Rector\\TypeDeclaration\\NodeAnalyzer\\CallTypesResolver' => __DIR__ . '/../..' . '/rules/TypeDeclaration/NodeAnalyzer/CallTypesResolver.php',
|
||||
'Rector\\TypeDeclaration\\NodeAnalyzer\\ClassMethodAndPropertyAnalyzer' => __DIR__ . '/../..' . '/rules/TypeDeclaration/NodeAnalyzer/ClassMethodAndPropertyAnalyzer.php',
|
||||
'Rector\\TypeDeclaration\\NodeAnalyzer\\ClassMethodParamTypeCompleter' => __DIR__ . '/../..' . '/rules/TypeDeclaration/NodeAnalyzer/ClassMethodParamTypeCompleter.php',
|
||||
'Rector\\TypeDeclaration\\NodeAnalyzer\\ReturnStrictTypeAnalyzer' => __DIR__ . '/../..' . '/rules/TypeDeclaration/NodeAnalyzer/ReturnStrictTypeAnalyzer.php',
|
||||
'Rector\\TypeDeclaration\\NodeAnalyzer\\TypeNodeUnwrapper' => __DIR__ . '/../..' . '/rules/TypeDeclaration/NodeAnalyzer/TypeNodeUnwrapper.php',
|
||||
'Rector\\TypeDeclaration\\NodeTypeAnalyzer\\CallTypeAnalyzer' => __DIR__ . '/../..' . '/rules/TypeDeclaration/NodeTypeAnalyzer/CallTypeAnalyzer.php',
|
||||
'Rector\\TypeDeclaration\\NodeTypeAnalyzer\\ChildTypeResolver' => __DIR__ . '/../..' . '/rules/TypeDeclaration/NodeTypeAnalyzer/ChildTypeResolver.php',
|
||||
|
@ -3837,9 +3838,9 @@ class ComposerStaticInit6c214e5c51e1718ae2867d2df74a9dd6
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit6c214e5c51e1718ae2867d2df74a9dd6::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit6c214e5c51e1718ae2867d2df74a9dd6::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit6c214e5c51e1718ae2867d2df74a9dd6::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitb4754d1b7c024aacda44819b413b2d8b::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitb4754d1b7c024aacda44819b413b2d8b::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitb4754d1b7c024aacda44819b413b2d8b::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
20
vendor/composer/installed.json
vendored
20
vendor/composer/installed.json
vendored
|
@ -1481,8 +1481,8 @@
|
|||
},
|
||||
{
|
||||
"name": "rector\/rector-symfony",
|
||||
"version": "0.11.9",
|
||||
"version_normalized": "0.11.9.0",
|
||||
"version": "0.11.10",
|
||||
"version_normalized": "0.11.10.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
|
||||
|
@ -1539,7 +1539,7 @@
|
|||
"description": "Rector upgrades rules for Symfony Framework",
|
||||
"support": {
|
||||
"issues": "https:\/\/github.com\/rectorphp\/rector-symfony\/issues",
|
||||
"source": "https:\/\/github.com\/rectorphp\/rector-symfony\/tree\/0.11.9"
|
||||
"source": "https:\/\/github.com\/rectorphp\/rector-symfony\/tree\/0.11.10"
|
||||
},
|
||||
"install-path": "..\/rector\/rector-symfony"
|
||||
},
|
||||
|
@ -1639,18 +1639,18 @@
|
|||
"phpspec\/prophecy-phpunit": "^2.0",
|
||||
"phpstan\/extension-installer": "^1.1",
|
||||
"phpunit\/phpunit": "^9.5",
|
||||
"rector\/phpstan-rules": "^0.3.4",
|
||||
"rector\/rector-generator": "^0.1.7",
|
||||
"rector\/rector-phpstan-rules": "^0.3.4",
|
||||
"rector\/rector-src": "dev-main",
|
||||
"symfony\/console": "^5.3.x-dev",
|
||||
"symplify\/coding-standard": "^9.3",
|
||||
"symplify\/easy-coding-standard": "^9.3",
|
||||
"symplify\/phpstan-extensions": "^9.3",
|
||||
"symplify\/phpstan-rules": "^9.3",
|
||||
"symplify\/rule-doc-generator": "^9.3",
|
||||
"symplify\/coding-standard": "^9.4.22",
|
||||
"symplify\/easy-coding-standard": "^9.4.22",
|
||||
"symplify\/phpstan-extensions": "^9.4.22",
|
||||
"symplify\/phpstan-rules": "^9.4.22",
|
||||
"symplify\/rule-doc-generator": "^9.4.22",
|
||||
"tracy\/tracy": "^2.8"
|
||||
},
|
||||
"time": "2021-07-17T15:31:57+00:00",
|
||||
"time": "2021-07-17T17:04:11+00:00",
|
||||
"default-branch": true,
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
|
|
2
vendor/composer/installed.php
vendored
2
vendor/composer/installed.php
vendored
File diff suppressed because one or more lines are too long
|
@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
|
|||
*/
|
||||
final class GeneratedConfig
|
||||
{
|
||||
public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => '0.11.3'), 'rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => '0.11.13'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 43ea561'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main f521ba2'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main c4320d8'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => '0.11.9'), 'ssch/typo3-rector' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/ssch/typo3-rector', 'relative_install_path' => '../../../ssch/typo3-rector', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main f5fd76a'));
|
||||
public const EXTENSIONS = array('rector/rector-cakephp' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-cakephp', 'relative_install_path' => '../../rector-cakephp', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => '0.11.3'), 'rector/rector-doctrine' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-doctrine', 'relative_install_path' => '../../rector-doctrine', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => '0.11.13'), 'rector/rector-laravel' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-laravel', 'relative_install_path' => '../../rector-laravel', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 43ea561'), 'rector/rector-nette' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-nette', 'relative_install_path' => '../../rector-nette', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main f521ba2'), 'rector/rector-phpunit' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpunit', 'relative_install_path' => '../../rector-phpunit', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main c4320d8'), 'rector/rector-symfony' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-symfony', 'relative_install_path' => '../../rector-symfony', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => '0.11.10'), 'ssch/typo3-rector' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/ssch/typo3-rector', 'relative_install_path' => '../../../ssch/typo3-rector', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main f5fd76a'));
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
|
10
vendor/scoper-autoload.php
vendored
10
vendor/scoper-autoload.php
vendored
|
@ -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('RectorPrefix20210717\AutoloadIncluder');
|
||||
}
|
||||
if (!class_exists('ComposerAutoloaderInit6c214e5c51e1718ae2867d2df74a9dd6', false) && !interface_exists('ComposerAutoloaderInit6c214e5c51e1718ae2867d2df74a9dd6', false) && !trait_exists('ComposerAutoloaderInit6c214e5c51e1718ae2867d2df74a9dd6', false)) {
|
||||
spl_autoload_call('RectorPrefix20210717\ComposerAutoloaderInit6c214e5c51e1718ae2867d2df74a9dd6');
|
||||
if (!class_exists('ComposerAutoloaderInitb4754d1b7c024aacda44819b413b2d8b', false) && !interface_exists('ComposerAutoloaderInitb4754d1b7c024aacda44819b413b2d8b', false) && !trait_exists('ComposerAutoloaderInitb4754d1b7c024aacda44819b413b2d8b', false)) {
|
||||
spl_autoload_call('RectorPrefix20210717\ComposerAutoloaderInitb4754d1b7c024aacda44819b413b2d8b');
|
||||
}
|
||||
if (!class_exists('Doctrine\Inflector\Inflector', false) && !interface_exists('Doctrine\Inflector\Inflector', false) && !trait_exists('Doctrine\Inflector\Inflector', false)) {
|
||||
spl_autoload_call('RectorPrefix20210717\Doctrine\Inflector\Inflector');
|
||||
|
@ -3308,9 +3308,9 @@ if (!function_exists('print_node')) {
|
|||
return \RectorPrefix20210717\print_node(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('composerRequire6c214e5c51e1718ae2867d2df74a9dd6')) {
|
||||
function composerRequire6c214e5c51e1718ae2867d2df74a9dd6() {
|
||||
return \RectorPrefix20210717\composerRequire6c214e5c51e1718ae2867d2df74a9dd6(...func_get_args());
|
||||
if (!function_exists('composerRequireb4754d1b7c024aacda44819b413b2d8b')) {
|
||||
function composerRequireb4754d1b7c024aacda44819b413b2d8b() {
|
||||
return \RectorPrefix20210717\composerRequireb4754d1b7c024aacda44819b413b2d8b(...func_get_args());
|
||||
}
|
||||
}
|
||||
if (!function_exists('parseArgs')) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user