Updated Rector to commit b9cc90c058942d82f84a68f3d1971b2db6b1601d

b9cc90c058 Make use of new types by fixed rector/phpstan-rules extensions (#2748)
This commit is contained in:
Tomas Votruba 2022-08-09 19:37:14 +00:00
parent f7bb838601
commit 8885e287b6
28 changed files with 95 additions and 92 deletions

View File

@ -187,14 +187,14 @@ final class PhpDocInfo
return $this->phpDocNodeByTypeFinder->findByType($this->phpDocNode, $type); 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 public function hasByType(string $type) : bool
{ {
return $this->phpDocNodeByTypeFinder->findByType($this->phpDocNode, $type) !== []; 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 public function hasByTypes(array $types) : bool
{ {

View File

@ -183,9 +183,9 @@ final class PhpDocTypeChanger
if ($varTag->description !== '') { if ($varTag->description !== '') {
return; return;
} }
$functionLike = $param->getAttribute(AttributeKey::PARENT_NODE); $parentNode = $param->getAttribute(AttributeKey::PARENT_NODE);
$paramVarName = $this->nodeNameResolver->getName($param->var); $paramVarName = $this->nodeNameResolver->getName($param->var);
if (!$functionLike instanceof ClassMethod) { if (!$parentNode instanceof ClassMethod) {
return; return;
} }
if (!$this->isAllowed($varTag->type)) { if (!$this->isAllowed($varTag->type)) {
@ -196,7 +196,7 @@ final class PhpDocTypeChanger
} }
$phpDocInfo->removeByType(VarTagValueNode::class); $phpDocInfo->removeByType(VarTagValueNode::class);
$param->setAttribute(AttributeKey::PHP_DOC_INFO, $phpDocInfo); $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); $paramType = $this->staticTypeMapper->mapPHPStanPhpDocTypeToPHPStanType($varTag, $property);
$this->changeParamType($phpDocInfo, $paramType, $param, $paramVarName); $this->changeParamType($phpDocInfo, $paramType, $param, $paramVarName);
$this->processKeepComments($property, $param); $this->processKeepComments($property, $param);

View File

@ -105,7 +105,7 @@ final class PropertyFetchTypeResolver implements NodeTypeResolverInterface
return new MixedType(); return new MixedType();
} }
$propertyFetchScope = $propertyFetch->getAttribute(AttributeKey::SCOPE); $propertyFetchScope = $propertyFetch->getAttribute(AttributeKey::SCOPE);
if ($propertyFetchScope === null) { if (!$propertyFetchScope instanceof Scope) {
return new MixedType(); return new MixedType();
} }
$propertyReflection = $classReflection->getProperty($propertyName, $propertyFetchScope); $propertyReflection = $classReflection->getProperty($propertyName, $propertyFetchScope);

View File

@ -22,11 +22,11 @@ final class JustReadExprAnalyzer
return \true; return \true;
} }
if ($parentNode instanceof ArrayDimFetch) { if ($parentNode instanceof ArrayDimFetch) {
$parentParent = $parentNode->getAttribute(AttributeKey::PARENT_NODE); $parentParentNode = $parentNode->getAttribute(AttributeKey::PARENT_NODE);
if (!$parentParent instanceof Assign) { if (!$parentParentNode instanceof Assign) {
return \true; return \true;
} }
return $parentParent->var !== $parentNode; return $parentParentNode->var !== $parentNode;
} }
// assume it's used by default // assume it's used by default
return !$parentNode instanceof Expression; return !$parentNode instanceof Expression;

View File

@ -36,9 +36,9 @@ final class ArrayDimFetchTypeResolver
} }
private function resolveValueStaticType(ArrayDimFetch $arrayDimFetch) : Type private function resolveValueStaticType(ArrayDimFetch $arrayDimFetch) : Type
{ {
$parentParent = $arrayDimFetch->getAttribute(AttributeKey::PARENT_NODE); $parentNode = $arrayDimFetch->getAttribute(AttributeKey::PARENT_NODE);
if ($parentParent instanceof Assign) { if ($parentNode instanceof Assign) {
return $this->nodeTypeResolver->getType($parentParent->expr); return $this->nodeTypeResolver->getType($parentNode->expr);
} }
return new MixedType(); return new MixedType();
} }

View File

@ -217,8 +217,8 @@ CODE_SAMPLE
if (!$stmtsAware instanceof If_) { if (!$stmtsAware instanceof If_) {
return \false; return \false;
} }
$nextParent = $stmtsAware->getAttribute(AttributeKey::NEXT_NODE); $nextNode = $stmtsAware->getAttribute(AttributeKey::NEXT_NODE);
return $nextParent instanceof Node; return $nextNode instanceof Node;
} }
private function isNestedIfInLoop(If_ $if, StmtsAwareInterface $stmtsAware) : bool private function isNestedIfInLoop(If_ $if, StmtsAwareInterface $stmtsAware) : bool
{ {

View File

@ -115,11 +115,11 @@ CODE_SAMPLE
if (!$parentNode instanceof Arg) { if (!$parentNode instanceof Arg) {
return \false; return \false;
} }
$parentParent = $parentNode->getAttribute(AttributeKey::PARENT_NODE); $parentParentNode = $parentNode->getAttribute(AttributeKey::PARENT_NODE);
if (!$parentParent instanceof FuncCall) { if (!$parentParentNode instanceof FuncCall) {
return \false; return \false;
} }
return $this->nodeNameResolver->isName($parentParent, 'is_a'); return $this->nodeNameResolver->isName($parentParentNode, 'is_a');
} }
private function shouldSkip(string $classLikeName, String_ $string) : bool private function shouldSkip(string $classLikeName, String_ $string) : bool
{ {

View File

@ -170,8 +170,8 @@ final class UndefinedVariableResolver
if (!$previousSwitch instanceof Switch_) { if (!$previousSwitch instanceof Switch_) {
return \false; return \false;
} }
$parentSwitch = $previousSwitch->getAttribute(AttributeKey::PARENT_NODE); $parentNode = $previousSwitch->getAttribute(AttributeKey::PARENT_NODE);
return $parentSwitch instanceof Case_; return $parentNode instanceof Case_;
} }
private function isDifferentWithOriginalNodeOrNoScope(Variable $variable) : bool private function isDifferentWithOriginalNodeOrNoScope(Variable $variable) : bool
{ {

View File

@ -62,7 +62,7 @@ CODE_SAMPLE
return null; return null;
} }
$nextExpression = $currentStmt->getAttribute(AttributeKey::NEXT_NODE); $nextExpression = $currentStmt->getAttribute(AttributeKey::NEXT_NODE);
if ($nextExpression === null) { if (!$nextExpression instanceof Node) {
return null; return null;
} }
$this->traverseNodesWithCallable($nextExpression, function (Node $node) use($resultVariable) : ?Variable { $this->traverseNodesWithCallable($nextExpression, function (Node $node) use($resultVariable) : ?Variable {

View File

@ -6,6 +6,7 @@ namespace Rector\Php74\Guard;
use PhpParser\Node\Stmt\Class_; use PhpParser\Node\Stmt\Class_;
use PhpParser\Node\Stmt\Property; use PhpParser\Node\Stmt\Property;
use PHPStan\Reflection\ClassReflection; use PHPStan\Reflection\ClassReflection;
use Rector\Core\Exception\ShouldNotHappenException;
use Rector\Core\NodeAnalyzer\PropertyAnalyzer; use Rector\Core\NodeAnalyzer\PropertyAnalyzer;
use Rector\Core\NodeManipulator\PropertyManipulator; use Rector\Core\NodeManipulator\PropertyManipulator;
use Rector\Core\Reflection\ReflectionResolver; use Rector\Core\Reflection\ReflectionResolver;
@ -83,9 +84,11 @@ final class MakePropertyTypedGuard
if (!$property->isProtected()) { if (!$property->isProtected()) {
return \false; return \false;
} }
/** @var Class_ $class */ $parentNode = $property->getAttribute(AttributeKey::PARENT_NODE);
$class = $property->getAttribute(AttributeKey::PARENT_NODE); if (!$parentNode instanceof Class_) {
if (!$class->isFinal()) { throw new ShouldNotHappenException();
}
if (!$parentNode->isFinal()) {
return \false; return \false;
} }
return $this->parentPropertyLookupGuard->isLegal($property); return $this->parentPropertyLookupGuard->isLegal($property);

View File

@ -102,8 +102,8 @@ CODE_SAMPLE
} }
private function refactorTokensVariable(FuncCall $funcCall) : void private function refactorTokensVariable(FuncCall $funcCall) : void
{ {
$assign = $funcCall->getAttribute(AttributeKey::PARENT_NODE); $parentNode = $funcCall->getAttribute(AttributeKey::PARENT_NODE);
if (!$assign instanceof Assign) { if (!$parentNode instanceof Assign) {
return; return;
} }
/** @var ClassMethod|Function_|null $classMethodOrFunction */ /** @var ClassMethod|Function_|null $classMethodOrFunction */
@ -112,7 +112,7 @@ CODE_SAMPLE
return; return;
} }
// dummy approach, improve when needed // 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 * @param \PhpParser\Node\Stmt\ClassMethod|\PhpParser\Node\Stmt\Function_ $functionLike

View File

@ -120,11 +120,11 @@ CODE_SAMPLE
private function processClassMethodReturnType(ClassMethod $classMethod, Type $parentType) : ?ClassMethod private function processClassMethodReturnType(ClassMethod $classMethod, Type $parentType) : ?ClassMethod
{ {
if ($parentType instanceof MixedType) { if ($parentType instanceof MixedType) {
$class = $classMethod->getAttribute(AttributeKey::PARENT_NODE); $parentNode = $classMethod->getAttribute(AttributeKey::PARENT_NODE);
if (!$class instanceof Class_) { if (!$parentNode instanceof Class_) {
return null; return null;
} }
$className = (string) $this->nodeNameResolver->getName($class); $className = (string) $this->nodeNameResolver->getName($parentNode);
$currentObjectType = new ObjectType($className); $currentObjectType = new ObjectType($className);
if (!$parentType->equals($currentObjectType) && $classMethod->returnType !== null) { if (!$parentType->equals($currentObjectType) && $classMethod->returnType !== null) {
return null; return null;

View File

@ -109,11 +109,11 @@ CODE_SAMPLE
private function processClassMethodNodeWithTypehints(ClassMethod $classMethod, Type $newType, ObjectType $objectType) : void private function processClassMethodNodeWithTypehints(ClassMethod $classMethod, Type $newType, ObjectType $objectType) : void
{ {
if ($newType instanceof MixedType) { if ($newType instanceof MixedType) {
$class = $classMethod->getAttribute(AttributeKey::PARENT_NODE); $parentNode = $classMethod->getAttribute(AttributeKey::PARENT_NODE);
if (!$class instanceof Class_) { if (!$parentNode instanceof Class_) {
return; return;
} }
$className = (string) $this->nodeNameResolver->getName($class); $className = (string) $this->nodeNameResolver->getName($parentNode);
$currentObjectType = new ObjectType($className); $currentObjectType = new ObjectType($className);
if (!$objectType->equals($currentObjectType) && $classMethod->returnType !== null) { if (!$objectType->equals($currentObjectType) && $classMethod->returnType !== null) {
return; return;

View File

@ -87,7 +87,7 @@ final class ChangedNodeScopeRefresher
$mutatingScope = $parentNode->getAttribute(AttributeKey::SCOPE); $mutatingScope = $parentNode->getAttribute(AttributeKey::SCOPE);
} }
if (!$mutatingScope instanceof MutatingScope) { 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); throw new ShouldNotHappenException($errorMessage);
} }
// note from flight: when we traverse ClassMethod, the scope must be already in Class_, otherwise it crashes // note from flight: when we traverse ClassMethod, the scope must be already in Class_, otherwise it crashes

View File

@ -17,12 +17,12 @@ final class VersionResolver
* @api * @api
* @var string * @var string
*/ */
public const PACKAGE_VERSION = 'f0425bc3cb3d5855da1bff9c38b872a9003e357b'; public const PACKAGE_VERSION = 'b9cc90c058942d82f84a68f3d1971b2db6b1601d';
/** /**
* @api * @api
* @var string * @var string
*/ */
public const RELEASE_DATE = '2022-08-09 15:34:29'; public const RELEASE_DATE = '2022-08-09 21:31:52';
/** /**
* @var int * @var int
*/ */

View File

@ -53,7 +53,7 @@ final class ExclusionManager
} }
// recurse up until a Stmt node is found since it might contain a noRector // recurse up until a Stmt node is found since it might contain a noRector
$parentNode = $node->getAttribute(AttributeKey::PARENT_NODE); $parentNode = $node->getAttribute(AttributeKey::PARENT_NODE);
if ($parentNode === null) { if (!$parentNode instanceof Node) {
return \false; return \false;
} }
return $this->isNodeSkippedByRector($parentNode, $rectorClass); return $this->isNodeSkippedByRector($parentNode, $rectorClass);

View File

@ -74,7 +74,7 @@ final class BetterNodeFinder
{ {
Assert::allIsAOf($types, Node::class); Assert::allIsAOf($types, Node::class);
while ($currentNode = $currentNode->getAttribute(AttributeKey::PARENT_NODE)) { while ($currentNode = $currentNode->getAttribute(AttributeKey::PARENT_NODE)) {
/** @var \PhpParser\Node|null $currentNode */ /** @var Node|null $currentNode */
if (!$currentNode instanceof Node) { if (!$currentNode instanceof Node) {
return null; return null;
} }

View File

@ -45,7 +45,7 @@ abstract class AbstractScopeAwareRector extends \Rector\Core\Rector\AbstractRect
} }
if (!$scope instanceof Scope) { if (!$scope instanceof Scope) {
$parentNode = $node->getAttribute(AttributeKey::PARENT_NODE); $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); throw new ShouldNotHappenException($errorMessage);
} }
return $this->refactorWithScope($node, $scope); return $this->refactorWithScope($node, $scope);

2
vendor/autoload.php vendored
View File

@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php'; require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInitc6497ac34cfe48ccc1ccb017402f115b::getLoader(); return ComposerAutoloaderInit428bba4eabdf26c6ab915326a9e8aa28::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer // autoload_real.php @generated by Composer
class ComposerAutoloaderInitc6497ac34cfe48ccc1ccb017402f115b class ComposerAutoloaderInit428bba4eabdf26c6ab915326a9e8aa28
{ {
private static $loader; private static $loader;
@ -22,19 +22,19 @@ class ComposerAutoloaderInitc6497ac34cfe48ccc1ccb017402f115b
return self::$loader; 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__)); 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'; 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->setClassMapAuthoritative(true);
$loader->register(true); $loader->register(true);
$includeFiles = \Composer\Autoload\ComposerStaticInitc6497ac34cfe48ccc1ccb017402f115b::$files; $includeFiles = \Composer\Autoload\ComposerStaticInit428bba4eabdf26c6ab915326a9e8aa28::$files;
foreach ($includeFiles as $fileIdentifier => $file) { foreach ($includeFiles as $fileIdentifier => $file) {
composerRequirec6497ac34cfe48ccc1ccb017402f115b($fileIdentifier, $file); composerRequire428bba4eabdf26c6ab915326a9e8aa28($fileIdentifier, $file);
} }
return $loader; return $loader;
@ -46,7 +46,7 @@ class ComposerAutoloaderInitc6497ac34cfe48ccc1ccb017402f115b
* @param string $file * @param string $file
* @return void * @return void
*/ */
function composerRequirec6497ac34cfe48ccc1ccb017402f115b($fileIdentifier, $file) function composerRequire428bba4eabdf26c6ab915326a9e8aa28($fileIdentifier, $file)
{ {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload; namespace Composer\Autoload;
class ComposerStaticInitc6497ac34cfe48ccc1ccb017402f115b class ComposerStaticInit428bba4eabdf26c6ab915326a9e8aa28
{ {
public static $files = array ( public static $files = array (
'0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php',
@ -3306,9 +3306,9 @@ class ComposerStaticInitc6497ac34cfe48ccc1ccb017402f115b
public static function getInitializer(ClassLoader $loader) public static function getInitializer(ClassLoader $loader)
{ {
return \Closure::bind(function () use ($loader) { return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInitc6497ac34cfe48ccc1ccb017402f115b::$prefixLengthsPsr4; $loader->prefixLengthsPsr4 = ComposerStaticInit428bba4eabdf26c6ab915326a9e8aa28::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInitc6497ac34cfe48ccc1ccb017402f115b::$prefixDirsPsr4; $loader->prefixDirsPsr4 = ComposerStaticInit428bba4eabdf26c6ab915326a9e8aa28::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInitc6497ac34cfe48ccc1ccb017402f115b::$classMap; $loader->classMap = ComposerStaticInit428bba4eabdf26c6ab915326a9e8aa28::$classMap;
}, null, ClassLoader::class); }, null, ClassLoader::class);
} }

View File

@ -1783,12 +1783,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-cakephp.git", "url": "https:\/\/github.com\/rectorphp\/rector-cakephp.git",
"reference": "ec9661647a2619b7939f8cbf1fd9dacc8333017c" "reference": "c2ec06c0b51a41f1469b88539170b94b2bc0b9ef"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-cakephp\/zipball\/ec9661647a2619b7939f8cbf1fd9dacc8333017c", "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-cakephp\/zipball\/c2ec06c0b51a41f1469b88539170b94b2bc0b9ef",
"reference": "ec9661647a2619b7939f8cbf1fd9dacc8333017c", "reference": "c2ec06c0b51a41f1469b88539170b94b2bc0b9ef",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1805,16 +1805,16 @@
"phpstan\/phpstan-strict-rules": "^1.1", "phpstan\/phpstan-strict-rules": "^1.1",
"phpstan\/phpstan-webmozart-assert": "^1.0", "phpstan\/phpstan-webmozart-assert": "^1.0",
"phpunit\/phpunit": "^9.5", "phpunit\/phpunit": "^9.5",
"rector\/phpstan-rules": "^0.5", "rector\/phpstan-rules": "^0.5.15",
"rector\/rector-src": "dev-main", "rector\/rector-src": "dev-main",
"symplify\/easy-coding-standard": "^11.0", "symplify\/easy-coding-standard": "^11.1",
"symplify\/monorepo-builder": "^11.0", "symplify\/monorepo-builder": "^11.1",
"symplify\/phpstan-extensions": "^11.0", "symplify\/phpstan-extensions": "^11.1",
"symplify\/phpstan-rules": "^11.0", "symplify\/phpstan-rules": "^11.1",
"symplify\/rule-doc-generator": "^11.0", "symplify\/rule-doc-generator": "^11.1",
"symplify\/vendor-patches": "^11.0" "symplify\/vendor-patches": "^11.1"
}, },
"time": "2022-07-19T09:18:37+00:00", "time": "2022-08-09T19:30:18+00:00",
"default-branch": true, "default-branch": true,
"type": "rector-extension", "type": "rector-extension",
"extra": { "extra": {
@ -1841,7 +1841,7 @@
"description": "Rector upgrades rules for CakePHP", "description": "Rector upgrades rules for CakePHP",
"support": { "support": {
"issues": "https:\/\/github.com\/rectorphp\/rector-cakephp\/issues", "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" "install-path": "..\/rector\/rector-cakephp"
}, },
@ -1852,12 +1852,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-doctrine.git", "url": "https:\/\/github.com\/rectorphp\/rector-doctrine.git",
"reference": "3e935b49a44986f7fa28c1c74d9c8ce1ef700931" "reference": "d6ae1b14e6b54e3d0ae2f89842ea0f0c341384a9"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/3e935b49a44986f7fa28c1c74d9c8ce1ef700931", "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-doctrine\/zipball\/d6ae1b14e6b54e3d0ae2f89842ea0f0c341384a9",
"reference": "3e935b49a44986f7fa28c1c74d9c8ce1ef700931", "reference": "d6ae1b14e6b54e3d0ae2f89842ea0f0c341384a9",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1869,11 +1869,11 @@
"require-dev": { "require-dev": {
"doctrine\/orm": "^2.10", "doctrine\/orm": "^2.10",
"phpstan\/extension-installer": "^1.1", "phpstan\/extension-installer": "^1.1",
"phpstan\/phpstan": "^1.8.1", "phpstan\/phpstan": "^1.8.2",
"phpstan\/phpstan-strict-rules": "^1.1", "phpstan\/phpstan-strict-rules": "^1.1",
"phpstan\/phpstan-webmozart-assert": "^1.0", "phpstan\/phpstan-webmozart-assert": "^1.0",
"phpunit\/phpunit": "^9.5", "phpunit\/phpunit": "^9.5",
"rector\/phpstan-rules": "^0.5", "rector\/phpstan-rules": "^0.5.15",
"rector\/rector-src": "dev-main", "rector\/rector-src": "dev-main",
"symplify\/easy-coding-standard": "^11.0", "symplify\/easy-coding-standard": "^11.0",
"symplify\/monorepo-builder": "^11.0", "symplify\/monorepo-builder": "^11.0",
@ -1882,7 +1882,7 @@
"symplify\/rule-doc-generator": "^11.0", "symplify\/rule-doc-generator": "^11.0",
"symplify\/vendor-patches": "^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, "default-branch": true,
"type": "rector-extension", "type": "rector-extension",
"extra": { "extra": {
@ -1909,7 +1909,7 @@
"description": "Rector upgrades rules for Doctrine", "description": "Rector upgrades rules for Doctrine",
"support": { "support": {
"issues": "https:\/\/github.com\/rectorphp\/rector-doctrine\/issues", "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" "install-path": "..\/rector\/rector-doctrine"
}, },
@ -2063,12 +2063,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-laravel.git", "url": "https:\/\/github.com\/rectorphp\/rector-laravel.git",
"reference": "987bdb423dc864ab80e2b62fa65138674ad3767b" "reference": "1712a30ad9393928161bf788f5ce1c6fc005825f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-laravel\/zipball\/987bdb423dc864ab80e2b62fa65138674ad3767b", "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-laravel\/zipball\/1712a30ad9393928161bf788f5ce1c6fc005825f",
"reference": "987bdb423dc864ab80e2b62fa65138674ad3767b", "reference": "1712a30ad9393928161bf788f5ce1c6fc005825f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2083,7 +2083,7 @@
"phpstan\/phpstan-strict-rules": "^1.2", "phpstan\/phpstan-strict-rules": "^1.2",
"phpstan\/phpstan-webmozart-assert": "^1.1", "phpstan\/phpstan-webmozart-assert": "^1.1",
"phpunit\/phpunit": "^9.5", "phpunit\/phpunit": "^9.5",
"rector\/phpstan-rules": "^0.5.4", "rector\/phpstan-rules": "^0.5.15",
"rector\/rector-src": "dev-main", "rector\/rector-src": "dev-main",
"symplify\/easy-coding-standard": "^11.0", "symplify\/easy-coding-standard": "^11.0",
"symplify\/monorepo-builder": "^11.0", "symplify\/monorepo-builder": "^11.0",
@ -2092,7 +2092,7 @@
"symplify\/rule-doc-generator": "^11.0", "symplify\/rule-doc-generator": "^11.0",
"symplify\/vendor-patches": "^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, "default-branch": true,
"type": "rector-extension", "type": "rector-extension",
"extra": { "extra": {
@ -2266,12 +2266,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git", "url": "https:\/\/github.com\/rectorphp\/rector-phpunit.git",
"reference": "d876ff24f19dcda4ed98e1e8def974f83d8b7b34" "reference": "c4caecafa38f3d6f09147f2f07700a44c4e099f1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/d876ff24f19dcda4ed98e1e8def974f83d8b7b34", "url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-phpunit\/zipball\/c4caecafa38f3d6f09147f2f07700a44c4e099f1",
"reference": "d876ff24f19dcda4ed98e1e8def974f83d8b7b34", "reference": "c4caecafa38f3d6f09147f2f07700a44c4e099f1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2286,7 +2286,7 @@
"phpstan\/phpstan-strict-rules": "^1.2", "phpstan\/phpstan-strict-rules": "^1.2",
"phpstan\/phpstan-webmozart-assert": "^1.1", "phpstan\/phpstan-webmozart-assert": "^1.1",
"phpunit\/phpunit": "^9.5", "phpunit\/phpunit": "^9.5",
"rector\/phpstan-rules": "^0.5", "rector\/phpstan-rules": "^0.5.15",
"rector\/rector-src": "dev-main", "rector\/rector-src": "dev-main",
"symplify\/easy-ci": "^11.0", "symplify\/easy-ci": "^11.0",
"symplify\/easy-coding-standard": "^11.0", "symplify\/easy-coding-standard": "^11.0",
@ -2296,7 +2296,7 @@
"symplify\/rule-doc-generator": "^11.0", "symplify\/rule-doc-generator": "^11.0",
"symplify\/vendor-patches": "^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, "default-branch": true,
"type": "rector-extension", "type": "rector-extension",
"extra": { "extra": {

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@ namespace Rector\RectorInstaller;
*/ */
final class GeneratedConfig 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() private function __construct()
{ {
} }

View File

@ -12,16 +12,16 @@
"phpstan\/phpstan": "^1.8.1", "phpstan\/phpstan": "^1.8.1",
"rector\/rector-src": "dev-main", "rector\/rector-src": "dev-main",
"phpunit\/phpunit": "^9.5", "phpunit\/phpunit": "^9.5",
"symplify\/phpstan-rules": "^11.0", "symplify\/phpstan-rules": "^11.1",
"symplify\/phpstan-extensions": "^11.0", "symplify\/phpstan-extensions": "^11.1",
"symplify\/easy-coding-standard": "^11.0", "symplify\/easy-coding-standard": "^11.1",
"symplify\/rule-doc-generator": "^11.0", "symplify\/rule-doc-generator": "^11.1",
"phpstan\/extension-installer": "^1.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-webmozart-assert": "^1.0",
"phpstan\/phpstan-strict-rules": "^1.1", "phpstan\/phpstan-strict-rules": "^1.1",
"symplify\/vendor-patches": "^11.0", "symplify\/vendor-patches": "^11.1",
"symplify\/monorepo-builder": "^11.0" "symplify\/monorepo-builder": "^11.1"
}, },
"autoload": { "autoload": {
"psr-4": { "psr-4": {

View File

@ -8,8 +8,8 @@
}, },
"require-dev": { "require-dev": {
"phpstan\/extension-installer": "^1.1", "phpstan\/extension-installer": "^1.1",
"rector\/phpstan-rules": "^0.5", "rector\/phpstan-rules": "^0.5.15",
"phpstan\/phpstan": "^1.8.1", "phpstan\/phpstan": "^1.8.2",
"phpunit\/phpunit": "^9.5", "phpunit\/phpunit": "^9.5",
"symplify\/phpstan-rules": "^11.0", "symplify\/phpstan-rules": "^11.0",
"symplify\/phpstan-extensions": "^11.0", "symplify\/phpstan-extensions": "^11.0",

View File

@ -15,7 +15,7 @@
"symplify\/easy-coding-standard": "^11.0", "symplify\/easy-coding-standard": "^11.0",
"symplify\/rule-doc-generator": "^11.0", "symplify\/rule-doc-generator": "^11.0",
"symplify\/monorepo-builder": "^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\/extension-installer": "^1.1",
"phpstan\/phpstan-webmozart-assert": "^1.1", "phpstan\/phpstan-webmozart-assert": "^1.1",
"phpstan\/phpstan-strict-rules": "^1.2", "phpstan\/phpstan-strict-rules": "^1.2",

View File

@ -14,7 +14,7 @@
"symplify\/phpstan-extensions": "^11.0", "symplify\/phpstan-extensions": "^11.0",
"symplify\/easy-coding-standard": "^11.0", "symplify\/easy-coding-standard": "^11.0",
"symplify\/rule-doc-generator": "^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\/extension-installer": "^1.1",
"phpstan\/phpstan-strict-rules": "^1.2", "phpstan\/phpstan-strict-rules": "^1.2",
"phpstan\/phpstan-webmozart-assert": "^1.1", "phpstan\/phpstan-webmozart-assert": "^1.1",