mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit b9cc90c058942d82f84a68f3d1971b2db6b1601d
b9cc90c058
Make use of new types by fixed rector/phpstan-rules extensions (#2748)
This commit is contained in:
parent
f7bb838601
commit
8885e287b6
|
@ -187,14 +187,14 @@ final class PhpDocInfo
|
|||
return $this->phpDocNodeByTypeFinder->findByType($this->phpDocNode, $type);
|
||||
}
|
||||
/**
|
||||
* @param class-string<\PHPStan\PhpDocParser\Ast\Node> $type
|
||||
* @param class-string<Node> $type
|
||||
*/
|
||||
public function hasByType(string $type) : bool
|
||||
{
|
||||
return $this->phpDocNodeByTypeFinder->findByType($this->phpDocNode, $type) !== [];
|
||||
}
|
||||
/**
|
||||
* @param array<class-string<\PHPStan\PhpDocParser\Ast\Node>> $types
|
||||
* @param array<class-string<Node>> $types
|
||||
*/
|
||||
public function hasByTypes(array $types) : bool
|
||||
{
|
||||
|
|
|
@ -183,9 +183,9 @@ final class PhpDocTypeChanger
|
|||
if ($varTag->description !== '') {
|
||||
return;
|
||||
}
|
||||
$functionLike = $param->getAttribute(AttributeKey::PARENT_NODE);
|
||||
$parentNode = $param->getAttribute(AttributeKey::PARENT_NODE);
|
||||
$paramVarName = $this->nodeNameResolver->getName($param->var);
|
||||
if (!$functionLike instanceof ClassMethod) {
|
||||
if (!$parentNode instanceof ClassMethod) {
|
||||
return;
|
||||
}
|
||||
if (!$this->isAllowed($varTag->type)) {
|
||||
|
@ -196,7 +196,7 @@ final class PhpDocTypeChanger
|
|||
}
|
||||
$phpDocInfo->removeByType(VarTagValueNode::class);
|
||||
$param->setAttribute(AttributeKey::PHP_DOC_INFO, $phpDocInfo);
|
||||
$phpDocInfo = $functionLike->getAttribute(AttributeKey::PHP_DOC_INFO);
|
||||
$phpDocInfo = $parentNode->getAttribute(AttributeKey::PHP_DOC_INFO);
|
||||
$paramType = $this->staticTypeMapper->mapPHPStanPhpDocTypeToPHPStanType($varTag, $property);
|
||||
$this->changeParamType($phpDocInfo, $paramType, $param, $paramVarName);
|
||||
$this->processKeepComments($property, $param);
|
||||
|
|
|
@ -105,7 +105,7 @@ final class PropertyFetchTypeResolver implements NodeTypeResolverInterface
|
|||
return new MixedType();
|
||||
}
|
||||
$propertyFetchScope = $propertyFetch->getAttribute(AttributeKey::SCOPE);
|
||||
if ($propertyFetchScope === null) {
|
||||
if (!$propertyFetchScope instanceof Scope) {
|
||||
return new MixedType();
|
||||
}
|
||||
$propertyReflection = $classReflection->getProperty($propertyName, $propertyFetchScope);
|
||||
|
|
|
@ -22,11 +22,11 @@ final class JustReadExprAnalyzer
|
|||
return \true;
|
||||
}
|
||||
if ($parentNode instanceof ArrayDimFetch) {
|
||||
$parentParent = $parentNode->getAttribute(AttributeKey::PARENT_NODE);
|
||||
if (!$parentParent instanceof Assign) {
|
||||
$parentParentNode = $parentNode->getAttribute(AttributeKey::PARENT_NODE);
|
||||
if (!$parentParentNode instanceof Assign) {
|
||||
return \true;
|
||||
}
|
||||
return $parentParent->var !== $parentNode;
|
||||
return $parentParentNode->var !== $parentNode;
|
||||
}
|
||||
// assume it's used by default
|
||||
return !$parentNode instanceof Expression;
|
||||
|
|
|
@ -36,9 +36,9 @@ final class ArrayDimFetchTypeResolver
|
|||
}
|
||||
private function resolveValueStaticType(ArrayDimFetch $arrayDimFetch) : Type
|
||||
{
|
||||
$parentParent = $arrayDimFetch->getAttribute(AttributeKey::PARENT_NODE);
|
||||
if ($parentParent instanceof Assign) {
|
||||
return $this->nodeTypeResolver->getType($parentParent->expr);
|
||||
$parentNode = $arrayDimFetch->getAttribute(AttributeKey::PARENT_NODE);
|
||||
if ($parentNode instanceof Assign) {
|
||||
return $this->nodeTypeResolver->getType($parentNode->expr);
|
||||
}
|
||||
return new MixedType();
|
||||
}
|
||||
|
|
|
@ -217,8 +217,8 @@ CODE_SAMPLE
|
|||
if (!$stmtsAware instanceof If_) {
|
||||
return \false;
|
||||
}
|
||||
$nextParent = $stmtsAware->getAttribute(AttributeKey::NEXT_NODE);
|
||||
return $nextParent instanceof Node;
|
||||
$nextNode = $stmtsAware->getAttribute(AttributeKey::NEXT_NODE);
|
||||
return $nextNode instanceof Node;
|
||||
}
|
||||
private function isNestedIfInLoop(If_ $if, StmtsAwareInterface $stmtsAware) : bool
|
||||
{
|
||||
|
|
|
@ -115,11 +115,11 @@ CODE_SAMPLE
|
|||
if (!$parentNode instanceof Arg) {
|
||||
return \false;
|
||||
}
|
||||
$parentParent = $parentNode->getAttribute(AttributeKey::PARENT_NODE);
|
||||
if (!$parentParent instanceof FuncCall) {
|
||||
$parentParentNode = $parentNode->getAttribute(AttributeKey::PARENT_NODE);
|
||||
if (!$parentParentNode instanceof FuncCall) {
|
||||
return \false;
|
||||
}
|
||||
return $this->nodeNameResolver->isName($parentParent, 'is_a');
|
||||
return $this->nodeNameResolver->isName($parentParentNode, 'is_a');
|
||||
}
|
||||
private function shouldSkip(string $classLikeName, String_ $string) : bool
|
||||
{
|
||||
|
|
|
@ -170,8 +170,8 @@ final class UndefinedVariableResolver
|
|||
if (!$previousSwitch instanceof Switch_) {
|
||||
return \false;
|
||||
}
|
||||
$parentSwitch = $previousSwitch->getAttribute(AttributeKey::PARENT_NODE);
|
||||
return $parentSwitch instanceof Case_;
|
||||
$parentNode = $previousSwitch->getAttribute(AttributeKey::PARENT_NODE);
|
||||
return $parentNode instanceof Case_;
|
||||
}
|
||||
private function isDifferentWithOriginalNodeOrNoScope(Variable $variable) : bool
|
||||
{
|
||||
|
|
|
@ -62,7 +62,7 @@ CODE_SAMPLE
|
|||
return null;
|
||||
}
|
||||
$nextExpression = $currentStmt->getAttribute(AttributeKey::NEXT_NODE);
|
||||
if ($nextExpression === null) {
|
||||
if (!$nextExpression instanceof Node) {
|
||||
return null;
|
||||
}
|
||||
$this->traverseNodesWithCallable($nextExpression, function (Node $node) use($resultVariable) : ?Variable {
|
||||
|
|
|
@ -6,6 +6,7 @@ namespace Rector\Php74\Guard;
|
|||
use PhpParser\Node\Stmt\Class_;
|
||||
use PhpParser\Node\Stmt\Property;
|
||||
use PHPStan\Reflection\ClassReflection;
|
||||
use Rector\Core\Exception\ShouldNotHappenException;
|
||||
use Rector\Core\NodeAnalyzer\PropertyAnalyzer;
|
||||
use Rector\Core\NodeManipulator\PropertyManipulator;
|
||||
use Rector\Core\Reflection\ReflectionResolver;
|
||||
|
@ -83,9 +84,11 @@ final class MakePropertyTypedGuard
|
|||
if (!$property->isProtected()) {
|
||||
return \false;
|
||||
}
|
||||
/** @var Class_ $class */
|
||||
$class = $property->getAttribute(AttributeKey::PARENT_NODE);
|
||||
if (!$class->isFinal()) {
|
||||
$parentNode = $property->getAttribute(AttributeKey::PARENT_NODE);
|
||||
if (!$parentNode instanceof Class_) {
|
||||
throw new ShouldNotHappenException();
|
||||
}
|
||||
if (!$parentNode->isFinal()) {
|
||||
return \false;
|
||||
}
|
||||
return $this->parentPropertyLookupGuard->isLegal($property);
|
||||
|
|
|
@ -102,8 +102,8 @@ CODE_SAMPLE
|
|||
}
|
||||
private function refactorTokensVariable(FuncCall $funcCall) : void
|
||||
{
|
||||
$assign = $funcCall->getAttribute(AttributeKey::PARENT_NODE);
|
||||
if (!$assign instanceof Assign) {
|
||||
$parentNode = $funcCall->getAttribute(AttributeKey::PARENT_NODE);
|
||||
if (!$parentNode instanceof Assign) {
|
||||
return;
|
||||
}
|
||||
/** @var ClassMethod|Function_|null $classMethodOrFunction */
|
||||
|
@ -112,7 +112,7 @@ CODE_SAMPLE
|
|||
return;
|
||||
}
|
||||
// dummy approach, improve when needed
|
||||
$this->replaceGetNameOrGetValue($classMethodOrFunction, $assign->var);
|
||||
$this->replaceGetNameOrGetValue($classMethodOrFunction, $parentNode->var);
|
||||
}
|
||||
/**
|
||||
* @param \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_ $functionLike
|
||||
|
|
|
@ -120,11 +120,11 @@ CODE_SAMPLE
|
|||
private function processClassMethodReturnType(ClassMethod $classMethod, Type $parentType) : ?ClassMethod
|
||||
{
|
||||
if ($parentType instanceof MixedType) {
|
||||
$class = $classMethod->getAttribute(AttributeKey::PARENT_NODE);
|
||||
if (!$class instanceof Class_) {
|
||||
$parentNode = $classMethod->getAttribute(AttributeKey::PARENT_NODE);
|
||||
if (!$parentNode instanceof Class_) {
|
||||
return null;
|
||||
}
|
||||
$className = (string) $this->nodeNameResolver->getName($class);
|
||||
$className = (string) $this->nodeNameResolver->getName($parentNode);
|
||||
$currentObjectType = new ObjectType($className);
|
||||
if (!$parentType->equals($currentObjectType) && $classMethod->returnType !== null) {
|
||||
return null;
|
||||
|
|
|
@ -109,11 +109,11 @@ CODE_SAMPLE
|
|||
private function processClassMethodNodeWithTypehints(ClassMethod $classMethod, Type $newType, ObjectType $objectType) : void
|
||||
{
|
||||
if ($newType instanceof MixedType) {
|
||||
$class = $classMethod->getAttribute(AttributeKey::PARENT_NODE);
|
||||
if (!$class instanceof Class_) {
|
||||
$parentNode = $classMethod->getAttribute(AttributeKey::PARENT_NODE);
|
||||
if (!$parentNode instanceof Class_) {
|
||||
return;
|
||||
}
|
||||
$className = (string) $this->nodeNameResolver->getName($class);
|
||||
$className = (string) $this->nodeNameResolver->getName($parentNode);
|
||||
$currentObjectType = new ObjectType($className);
|
||||
if (!$objectType->equals($currentObjectType) && $classMethod->returnType !== null) {
|
||||
return;
|
||||
|
|
|
@ -87,7 +87,7 @@ final class ChangedNodeScopeRefresher
|
|||
$mutatingScope = $parentNode->getAttribute(AttributeKey::SCOPE);
|
||||
}
|
||||
if (!$mutatingScope instanceof MutatingScope) {
|
||||
$errorMessage = \sprintf('Node "%s" with parent of "%s" is missing scope required for scope refresh.', \get_class($node), $parentNode instanceof \PhpParser\Node ? \get_class($parentNode) : 'unknown parent');
|
||||
$errorMessage = \sprintf('Node "%s" with parent of "%s" is missing scope required for scope refresh.', \get_class($node), $parentNode instanceof Node ? \get_class($parentNode) : 'unknown parent');
|
||||
throw new ShouldNotHappenException($errorMessage);
|
||||
}
|
||||
// note from flight: when we traverse ClassMethod, the scope must be already in Class_, otherwise it crashes
|
||||
|
|
|
@ -17,12 +17,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'f0425bc3cb3d5855da1bff9c38b872a9003e357b';
|
||||
public const PACKAGE_VERSION = 'b9cc90c058942d82f84a68f3d1971b2db6b1601d';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2022-08-09 15:34:29';
|
||||
public const RELEASE_DATE = '2022-08-09 21:31:52';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
|
@ -53,7 +53,7 @@ final class ExclusionManager
|
|||
}
|
||||
// recurse up until a Stmt node is found since it might contain a noRector
|
||||
$parentNode = $node->getAttribute(AttributeKey::PARENT_NODE);
|
||||
if ($parentNode === null) {
|
||||
if (!$parentNode instanceof Node) {
|
||||
return \false;
|
||||
}
|
||||
return $this->isNodeSkippedByRector($parentNode, $rectorClass);
|
||||
|
|
|
@ -74,7 +74,7 @@ final class BetterNodeFinder
|
|||
{
|
||||
Assert::allIsAOf($types, Node::class);
|
||||
while ($currentNode = $currentNode->getAttribute(AttributeKey::PARENT_NODE)) {
|
||||
/** @var \PhpParser\Node|null $currentNode */
|
||||
/** @var Node|null $currentNode */
|
||||
if (!$currentNode instanceof Node) {
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ abstract class AbstractScopeAwareRector extends \Rector\Core\Rector\AbstractRect
|
|||
}
|
||||
if (!$scope instanceof Scope) {
|
||||
$parentNode = $node->getAttribute(AttributeKey::PARENT_NODE);
|
||||
$errorMessage = \sprintf('Scope not available on "%s" node with parent node of "%s", but is required by a refactorWithScope() method of "%s" rule. Fix scope refresh on changed nodes first', \get_class($node), $parentNode instanceof \PhpParser\Node ? \get_class($parentNode) : 'unknown node', static::class);
|
||||
$errorMessage = \sprintf('Scope not available on "%s" node with parent node of "%s", but is required by a refactorWithScope() method of "%s" rule. Fix scope refresh on changed nodes first', \get_class($node), $parentNode instanceof Node ? \get_class($parentNode) : 'unknown node', static::class);
|
||||
throw new ShouldNotHappenException($errorMessage);
|
||||
}
|
||||
return $this->refactorWithScope($node, $scope);
|
||||
|
|
|
@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
|
|||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInitc6497ac34cfe48ccc1ccb017402f115b::getLoader();
|
||||
return ComposerAutoloaderInit428bba4eabdf26c6ab915326a9e8aa28::getLoader();
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// autoload_real.php @generated by Composer
|
||||
|
||||
class ComposerAutoloaderInitc6497ac34cfe48ccc1ccb017402f115b
|
||||
class ComposerAutoloaderInit428bba4eabdf26c6ab915326a9e8aa28
|
||||
{
|
||||
private static $loader;
|
||||
|
||||
|
@ -22,19 +22,19 @@ class ComposerAutoloaderInitc6497ac34cfe48ccc1ccb017402f115b
|
|||
return self::$loader;
|
||||
}
|
||||
|
||||
spl_autoload_register(array('ComposerAutoloaderInitc6497ac34cfe48ccc1ccb017402f115b', 'loadClassLoader'), true, true);
|
||||
spl_autoload_register(array('ComposerAutoloaderInit428bba4eabdf26c6ab915326a9e8aa28', 'loadClassLoader'), true, true);
|
||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInitc6497ac34cfe48ccc1ccb017402f115b', 'loadClassLoader'));
|
||||
spl_autoload_unregister(array('ComposerAutoloaderInit428bba4eabdf26c6ab915326a9e8aa28', 'loadClassLoader'));
|
||||
|
||||
require __DIR__ . '/autoload_static.php';
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInitc6497ac34cfe48ccc1ccb017402f115b::getInitializer($loader));
|
||||
call_user_func(\Composer\Autoload\ComposerStaticInit428bba4eabdf26c6ab915326a9e8aa28::getInitializer($loader));
|
||||
|
||||
$loader->setClassMapAuthoritative(true);
|
||||
$loader->register(true);
|
||||
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInitc6497ac34cfe48ccc1ccb017402f115b::$files;
|
||||
$includeFiles = \Composer\Autoload\ComposerStaticInit428bba4eabdf26c6ab915326a9e8aa28::$files;
|
||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
||||
composerRequirec6497ac34cfe48ccc1ccb017402f115b($fileIdentifier, $file);
|
||||
composerRequire428bba4eabdf26c6ab915326a9e8aa28($fileIdentifier, $file);
|
||||
}
|
||||
|
||||
return $loader;
|
||||
|
@ -46,7 +46,7 @@ class ComposerAutoloaderInitc6497ac34cfe48ccc1ccb017402f115b
|
|||
* @param string $file
|
||||
* @return void
|
||||
*/
|
||||
function composerRequirec6497ac34cfe48ccc1ccb017402f115b($fileIdentifier, $file)
|
||||
function composerRequire428bba4eabdf26c6ab915326a9e8aa28($fileIdentifier, $file)
|
||||
{
|
||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
namespace Composer\Autoload;
|
||||
|
||||
class ComposerStaticInitc6497ac34cfe48ccc1ccb017402f115b
|
||||
class ComposerStaticInit428bba4eabdf26c6ab915326a9e8aa28
|
||||
{
|
||||
public static $files = array (
|
||||
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
|
||||
|
@ -3306,9 +3306,9 @@ class ComposerStaticInitc6497ac34cfe48ccc1ccb017402f115b
|
|||
public static function getInitializer(ClassLoader $loader)
|
||||
{
|
||||
return \Closure::bind(function () use ($loader) {
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInitc6497ac34cfe48ccc1ccb017402f115b::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInitc6497ac34cfe48ccc1ccb017402f115b::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInitc6497ac34cfe48ccc1ccb017402f115b::$classMap;
|
||||
$loader->prefixLengthsPsr4 = ComposerStaticInit428bba4eabdf26c6ab915326a9e8aa28::$prefixLengthsPsr4;
|
||||
$loader->prefixDirsPsr4 = ComposerStaticInit428bba4eabdf26c6ab915326a9e8aa28::$prefixDirsPsr4;
|
||||
$loader->classMap = ComposerStaticInit428bba4eabdf26c6ab915326a9e8aa28::$classMap;
|
||||
|
||||
}, null, ClassLoader::class);
|
||||
}
|
||||
|
|
|
@ -1783,12 +1783,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-cakephp.git",
|
||||
"reference": "ec9661647a2619b7939f8cbf1fd9dacc8333017c"
|
||||
"reference": "c2ec06c0b51a41f1469b88539170b94b2bc0b9ef"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-cakephp\/zipball\/ec9661647a2619b7939f8cbf1fd9dacc8333017c",
|
||||
"reference": "ec9661647a2619b7939f8cbf1fd9dacc8333017c",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-cakephp\/zipball\/c2ec06c0b51a41f1469b88539170b94b2bc0b9ef",
|
||||
"reference": "c2ec06c0b51a41f1469b88539170b94b2bc0b9ef",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -1805,16 +1805,16 @@
|
|||
"phpstan\/phpstan-strict-rules": "^1.1",
|
||||
"phpstan\/phpstan-webmozart-assert": "^1.0",
|
||||
"phpunit\/phpunit": "^9.5",
|
||||
"rector\/phpstan-rules": "^0.5",
|
||||
"rector\/phpstan-rules": "^0.5.15",
|
||||
"rector\/rector-src": "dev-main",
|
||||
"symplify\/easy-coding-standard": "^11.0",
|
||||
"symplify\/monorepo-builder": "^11.0",
|
||||
"symplify\/phpstan-extensions": "^11.0",
|
||||
"symplify\/phpstan-rules": "^11.0",
|
||||
"symplify\/rule-doc-generator": "^11.0",
|
||||
"symplify\/vendor-patches": "^11.0"
|
||||
"symplify\/easy-coding-standard": "^11.1",
|
||||
"symplify\/monorepo-builder": "^11.1",
|
||||
"symplify\/phpstan-extensions": "^11.1",
|
||||
"symplify\/phpstan-rules": "^11.1",
|
||||
"symplify\/rule-doc-generator": "^11.1",
|
||||
"symplify\/vendor-patches": "^11.1"
|
||||
},
|
||||
"time": "2022-07-19T09:18:37+00:00",
|
||||
"time": "2022-08-09T19:30:18+00:00",
|
||||
"default-branch": true,
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
|
@ -1841,7 +1841,7 @@
|
|||
"description": "Rector upgrades rules for CakePHP",
|
||||
"support": {
|
||||
"issues": "https:\/\/github.com\/rectorphp\/rector-cakephp\/issues",
|
||||
"source": "https:\/\/github.com\/rectorphp\/rector-cakephp\/tree\/main"
|
||||
"source": "https:\/\/github.com\/rectorphp\/rector-cakephp\/tree\/0.13.2"
|
||||
},
|
||||
"install-path": "..\/rector\/rector-cakephp"
|
||||
},
|
||||
|
@ -1852,12 +1852,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-doctrine.git",
|
||||
"reference": "3e935b49a44986f7fa28c1c74d9c8ce1ef700931"
|
||||
"reference": "d6ae1b14e6b54e3d0ae2f89842ea0f0c341384a9"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/3e935b49a44986f7fa28c1c74d9c8ce1ef700931",
|
||||
"reference": "3e935b49a44986f7fa28c1c74d9c8ce1ef700931",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/d6ae1b14e6b54e3d0ae2f89842ea0f0c341384a9",
|
||||
"reference": "d6ae1b14e6b54e3d0ae2f89842ea0f0c341384a9",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -1869,11 +1869,11 @@
|
|||
"require-dev": {
|
||||
"doctrine\/orm": "^2.10",
|
||||
"phpstan\/extension-installer": "^1.1",
|
||||
"phpstan\/phpstan": "^1.8.1",
|
||||
"phpstan\/phpstan": "^1.8.2",
|
||||
"phpstan\/phpstan-strict-rules": "^1.1",
|
||||
"phpstan\/phpstan-webmozart-assert": "^1.0",
|
||||
"phpunit\/phpunit": "^9.5",
|
||||
"rector\/phpstan-rules": "^0.5",
|
||||
"rector\/phpstan-rules": "^0.5.15",
|
||||
"rector\/rector-src": "dev-main",
|
||||
"symplify\/easy-coding-standard": "^11.0",
|
||||
"symplify\/monorepo-builder": "^11.0",
|
||||
|
@ -1882,7 +1882,7 @@
|
|||
"symplify\/rule-doc-generator": "^11.0",
|
||||
"symplify\/vendor-patches": "^11.0"
|
||||
},
|
||||
"time": "2022-08-07T09:30:44+00:00",
|
||||
"time": "2022-08-09T19:20:01+00:00",
|
||||
"default-branch": true,
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
|
@ -1909,7 +1909,7 @@
|
|||
"description": "Rector upgrades rules for Doctrine",
|
||||
"support": {
|
||||
"issues": "https:\/\/github.com\/rectorphp\/rector-doctrine\/issues",
|
||||
"source": "https:\/\/github.com\/rectorphp\/rector-doctrine\/tree\/main"
|
||||
"source": "https:\/\/github.com\/rectorphp\/rector-doctrine\/tree\/0.11.42"
|
||||
},
|
||||
"install-path": "..\/rector\/rector-doctrine"
|
||||
},
|
||||
|
@ -2063,12 +2063,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-laravel.git",
|
||||
"reference": "987bdb423dc864ab80e2b62fa65138674ad3767b"
|
||||
"reference": "1712a30ad9393928161bf788f5ce1c6fc005825f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-laravel\/zipball\/987bdb423dc864ab80e2b62fa65138674ad3767b",
|
||||
"reference": "987bdb423dc864ab80e2b62fa65138674ad3767b",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-laravel\/zipball\/1712a30ad9393928161bf788f5ce1c6fc005825f",
|
||||
"reference": "1712a30ad9393928161bf788f5ce1c6fc005825f",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -2083,7 +2083,7 @@
|
|||
"phpstan\/phpstan-strict-rules": "^1.2",
|
||||
"phpstan\/phpstan-webmozart-assert": "^1.1",
|
||||
"phpunit\/phpunit": "^9.5",
|
||||
"rector\/phpstan-rules": "^0.5.4",
|
||||
"rector\/phpstan-rules": "^0.5.15",
|
||||
"rector\/rector-src": "dev-main",
|
||||
"symplify\/easy-coding-standard": "^11.0",
|
||||
"symplify\/monorepo-builder": "^11.0",
|
||||
|
@ -2092,7 +2092,7 @@
|
|||
"symplify\/rule-doc-generator": "^11.0",
|
||||
"symplify\/vendor-patches": "^11.0"
|
||||
},
|
||||
"time": "2022-07-19T08:14:57+00:00",
|
||||
"time": "2022-08-09T13:37:07+00:00",
|
||||
"default-branch": true,
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
|
@ -2266,12 +2266,12 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
|
||||
"reference": "d876ff24f19dcda4ed98e1e8def974f83d8b7b34"
|
||||
"reference": "c4caecafa38f3d6f09147f2f07700a44c4e099f1"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/d876ff24f19dcda4ed98e1e8def974f83d8b7b34",
|
||||
"reference": "d876ff24f19dcda4ed98e1e8def974f83d8b7b34",
|
||||
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/c4caecafa38f3d6f09147f2f07700a44c4e099f1",
|
||||
"reference": "c4caecafa38f3d6f09147f2f07700a44c4e099f1",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
|
@ -2286,7 +2286,7 @@
|
|||
"phpstan\/phpstan-strict-rules": "^1.2",
|
||||
"phpstan\/phpstan-webmozart-assert": "^1.1",
|
||||
"phpunit\/phpunit": "^9.5",
|
||||
"rector\/phpstan-rules": "^0.5",
|
||||
"rector\/phpstan-rules": "^0.5.15",
|
||||
"rector\/rector-src": "dev-main",
|
||||
"symplify\/easy-ci": "^11.0",
|
||||
"symplify\/easy-coding-standard": "^11.0",
|
||||
|
@ -2296,7 +2296,7 @@
|
|||
"symplify\/rule-doc-generator": "^11.0",
|
||||
"symplify\/vendor-patches": "^11.0"
|
||||
},
|
||||
"time": "2022-07-19T09:28:42+00:00",
|
||||
"time": "2022-08-09T13:51:17+00:00",
|
||||
"default-branch": true,
|
||||
"type": "rector-extension",
|
||||
"extra": {
|
||||
|
|
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' => 'dev-main ec96616'), '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' => 'dev-main 3e935b4'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 7ee4e58'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 38440b9'), '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 987bdb4'), '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 0e8e933'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main ad7cfce'), '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 d876ff2'), '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' => 'dev-main f88fb13'));
|
||||
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' => 'dev-main c2ec06c'), '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' => 'dev-main d6ae1b1'), 'rector/rector-downgrade-php' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-downgrade-php', 'relative_install_path' => '../../rector-downgrade-php', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 7ee4e58'), 'rector/rector-generator' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-generator', 'relative_install_path' => '../../rector-generator', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main 38440b9'), '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 1712a30'), '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 0e8e933'), 'rector/rector-phpoffice' => array('install_path' => '/home/runner/work/rector-src/rector-src/vendor/rector/rector-phpoffice', 'relative_install_path' => '../../rector-phpoffice', 'extra' => array('includes' => array(0 => 'config/config.php')), 'version' => 'dev-main ad7cfce'), '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 c4caeca'), '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' => 'dev-main f88fb13'));
|
||||
private function __construct()
|
||||
{
|
||||
}
|
||||
|
|
|
@ -12,16 +12,16 @@
|
|||
"phpstan\/phpstan": "^1.8.1",
|
||||
"rector\/rector-src": "dev-main",
|
||||
"phpunit\/phpunit": "^9.5",
|
||||
"symplify\/phpstan-rules": "^11.0",
|
||||
"symplify\/phpstan-extensions": "^11.0",
|
||||
"symplify\/easy-coding-standard": "^11.0",
|
||||
"symplify\/rule-doc-generator": "^11.0",
|
||||
"symplify\/phpstan-rules": "^11.1",
|
||||
"symplify\/phpstan-extensions": "^11.1",
|
||||
"symplify\/easy-coding-standard": "^11.1",
|
||||
"symplify\/rule-doc-generator": "^11.1",
|
||||
"phpstan\/extension-installer": "^1.1",
|
||||
"rector\/phpstan-rules": "^0.5",
|
||||
"rector\/phpstan-rules": "^0.5.15",
|
||||
"phpstan\/phpstan-webmozart-assert": "^1.0",
|
||||
"phpstan\/phpstan-strict-rules": "^1.1",
|
||||
"symplify\/vendor-patches": "^11.0",
|
||||
"symplify\/monorepo-builder": "^11.0"
|
||||
"symplify\/vendor-patches": "^11.1",
|
||||
"symplify\/monorepo-builder": "^11.1"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
},
|
||||
"require-dev": {
|
||||
"phpstan\/extension-installer": "^1.1",
|
||||
"rector\/phpstan-rules": "^0.5",
|
||||
"phpstan\/phpstan": "^1.8.1",
|
||||
"rector\/phpstan-rules": "^0.5.15",
|
||||
"phpstan\/phpstan": "^1.8.2",
|
||||
"phpunit\/phpunit": "^9.5",
|
||||
"symplify\/phpstan-rules": "^11.0",
|
||||
"symplify\/phpstan-extensions": "^11.0",
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"symplify\/easy-coding-standard": "^11.0",
|
||||
"symplify\/rule-doc-generator": "^11.0",
|
||||
"symplify\/monorepo-builder": "^11.0",
|
||||
"rector\/phpstan-rules": "^0.5.4",
|
||||
"rector\/phpstan-rules": "^0.5.15",
|
||||
"phpstan\/extension-installer": "^1.1",
|
||||
"phpstan\/phpstan-webmozart-assert": "^1.1",
|
||||
"phpstan\/phpstan-strict-rules": "^1.2",
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"symplify\/phpstan-extensions": "^11.0",
|
||||
"symplify\/easy-coding-standard": "^11.0",
|
||||
"symplify\/rule-doc-generator": "^11.0",
|
||||
"rector\/phpstan-rules": "^0.5",
|
||||
"rector\/phpstan-rules": "^0.5.15",
|
||||
"phpstan\/extension-installer": "^1.1",
|
||||
"phpstan\/phpstan-strict-rules": "^1.2",
|
||||
"phpstan\/phpstan-webmozart-assert": "^1.1",
|
||||
|
|
Loading…
Reference in New Issue