Skip to content

Commit

Permalink
Updated Rector to commit 532b39dd167d28aa21dac38751f9b9bcd34373b7
Browse files Browse the repository at this point in the history
rectorphp/rector-src@532b39d [Parser] Remove SmartPhpParserFactory and SmartPhpParser (#6651)
  • Loading branch information
TomasVotruba committed Jan 6, 2025
1 parent 45b8ec2 commit dd9ef30
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 99 deletions.
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'fe99f211133b43850881ce0a7522c6242892b6b1';
public const PACKAGE_VERSION = '532b39dd167d28aa21dac38751f9b9bcd34373b7';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2025-01-06 10:15:49';
public const RELEASE_DATE = '2025-01-06 17:18:00';
/**
* @var int
*/
Expand Down
37 changes: 0 additions & 37 deletions src/PhpDocParser/PhpParser/SmartPhpParser.php

This file was deleted.

43 changes: 0 additions & 43 deletions src/PhpDocParser/PhpParser/SmartPhpParserFactory.php

This file was deleted.

10 changes: 5 additions & 5 deletions src/PhpParser/AstResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
use Rector\NodeNameResolver\NodeNameResolver;
use Rector\NodeTypeResolver\NodeScopeAndMetadataDecorator;
use Rector\NodeTypeResolver\NodeTypeResolver;
use Rector\PhpDocParser\PhpParser\SmartPhpParser;
use Rector\PhpParser\Node\BetterNodeFinder;
use Rector\PhpParser\Parser\RectorParser;
use Rector\Reflection\MethodReflectionResolver;
use Rector\StaticTypeMapper\Resolver\ClassNameFromObjectTypeResolver;
use Rector\ValueObject\MethodName;
Expand All @@ -45,7 +45,7 @@ final class AstResolver
/**
* @readonly
*/
private SmartPhpParser $smartPhpParser;
private RectorParser $rectorParser;
/**
* @readonly
*/
Expand Down Expand Up @@ -77,9 +77,9 @@ final class AstResolver
* @var array<string, Stmt[]|null>
*/
private array $parsedFileNodes = [];
public function __construct(SmartPhpParser $smartPhpParser, NodeScopeAndMetadataDecorator $nodeScopeAndMetadataDecorator, NodeNameResolver $nodeNameResolver, ReflectionProvider $reflectionProvider, NodeTypeResolver $nodeTypeResolver, MethodReflectionResolver $methodReflectionResolver, BetterNodeFinder $betterNodeFinder)
public function __construct(RectorParser $rectorParser, NodeScopeAndMetadataDecorator $nodeScopeAndMetadataDecorator, NodeNameResolver $nodeNameResolver, ReflectionProvider $reflectionProvider, NodeTypeResolver $nodeTypeResolver, MethodReflectionResolver $methodReflectionResolver, BetterNodeFinder $betterNodeFinder)
{
$this->smartPhpParser = $smartPhpParser;
$this->rectorParser = $rectorParser;
$this->nodeScopeAndMetadataDecorator = $nodeScopeAndMetadataDecorator;
$this->nodeNameResolver = $nodeNameResolver;
$this->reflectionProvider = $reflectionProvider;
Expand Down Expand Up @@ -276,7 +276,7 @@ public function parseFileNameToDecoratedNodes(?string $fileName) : array
return $this->parsedFileNodes[$fileName];
}
try {
$stmts = $this->smartPhpParser->parseFile($fileName);
$stmts = $this->rectorParser->parseFile($fileName);
} catch (Throwable $throwable) {
/**
* phpstan.phar contains jetbrains/phpstorm-stubs which the code is not downgraded
Expand Down
2 changes: 0 additions & 2 deletions vendor/composer/autoload_classmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2054,8 +2054,6 @@
'Rector\\PhpDocParser\\PhpDocParser\\PhpDocNodeVisitor\\CloningPhpDocNodeVisitor' => $baseDir . '/src/PhpDocParser/PhpDocParser/PhpDocNodeVisitor/CloningPhpDocNodeVisitor.php',
'Rector\\PhpDocParser\\PhpDocParser\\PhpDocNodeVisitor\\ParentConnectingPhpDocNodeVisitor' => $baseDir . '/src/PhpDocParser/PhpDocParser/PhpDocNodeVisitor/ParentConnectingPhpDocNodeVisitor.php',
'Rector\\PhpDocParser\\PhpDocParser\\ValueObject\\PhpDocAttributeKey' => $baseDir . '/src/PhpDocParser/PhpDocParser/ValueObject/PhpDocAttributeKey.php',
'Rector\\PhpDocParser\\PhpParser\\SmartPhpParser' => $baseDir . '/src/PhpDocParser/PhpParser/SmartPhpParser.php',
'Rector\\PhpDocParser\\PhpParser\\SmartPhpParserFactory' => $baseDir . '/src/PhpDocParser/PhpParser/SmartPhpParserFactory.php',
'Rector\\PhpDocParser\\ValueObject\\AttributeKey' => $baseDir . '/src/PhpDocParser/ValueObject/AttributeKey.php',
'Rector\\PhpParser\\AstResolver' => $baseDir . '/src/PhpParser/AstResolver.php',
'Rector\\PhpParser\\Comparing\\NodeComparator' => $baseDir . '/src/PhpParser/Comparing/NodeComparator.php',
Expand Down
2 changes: 0 additions & 2 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -2273,8 +2273,6 @@ class ComposerStaticInit4349f48e2d711e343a1bf0101d0ae855
'Rector\\PhpDocParser\\PhpDocParser\\PhpDocNodeVisitor\\CloningPhpDocNodeVisitor' => __DIR__ . '/../..' . '/src/PhpDocParser/PhpDocParser/PhpDocNodeVisitor/CloningPhpDocNodeVisitor.php',
'Rector\\PhpDocParser\\PhpDocParser\\PhpDocNodeVisitor\\ParentConnectingPhpDocNodeVisitor' => __DIR__ . '/../..' . '/src/PhpDocParser/PhpDocParser/PhpDocNodeVisitor/ParentConnectingPhpDocNodeVisitor.php',
'Rector\\PhpDocParser\\PhpDocParser\\ValueObject\\PhpDocAttributeKey' => __DIR__ . '/../..' . '/src/PhpDocParser/PhpDocParser/ValueObject/PhpDocAttributeKey.php',
'Rector\\PhpDocParser\\PhpParser\\SmartPhpParser' => __DIR__ . '/../..' . '/src/PhpDocParser/PhpParser/SmartPhpParser.php',
'Rector\\PhpDocParser\\PhpParser\\SmartPhpParserFactory' => __DIR__ . '/../..' . '/src/PhpDocParser/PhpParser/SmartPhpParserFactory.php',
'Rector\\PhpDocParser\\ValueObject\\AttributeKey' => __DIR__ . '/../..' . '/src/PhpDocParser/ValueObject/AttributeKey.php',
'Rector\\PhpParser\\AstResolver' => __DIR__ . '/../..' . '/src/PhpParser/AstResolver.php',
'Rector\\PhpParser\\Comparing\\NodeComparator' => __DIR__ . '/../..' . '/src/PhpParser/Comparing/NodeComparator.php',
Expand Down
10 changes: 5 additions & 5 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -1866,12 +1866,12 @@
"source": {
"type": "git",
"url": "https:\/\/github.com\/rectorphp\/rector-symfony.git",
"reference": "f14ec1ab84460a4ecc961bb69dc3c8c6c4122e60"
"reference": "a3253b4a96532357e8faf9e837e9be82237e2e80"
},
"dist": {
"type": "zip",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/f14ec1ab84460a4ecc961bb69dc3c8c6c4122e60",
"reference": "f14ec1ab84460a4ecc961bb69dc3c8c6c4122e60",
"url": "https:\/\/api.github.com\/repos\/rectorphp\/rector-symfony\/zipball\/a3253b4a96532357e8faf9e837e9be82237e2e80",
"reference": "a3253b4a96532357e8faf9e837e9be82237e2e80",
"shasum": ""
},
"require": {
Expand All @@ -1883,7 +1883,7 @@
"phpstan\/phpstan": "^2.0",
"phpstan\/phpstan-webmozart-assert": "^2.0",
"phpunit\/phpunit": "^11.4",
"rector\/rector-src": "dev-tv-readonly-add-ctor",
"rector\/rector-src": "dev-main",
"symfony\/config": "^6.4",
"symfony\/dependency-injection": "^6.4",
"symfony\/http-kernel": "~6.3",
Expand All @@ -1896,7 +1896,7 @@
"tomasvotruba\/class-leak": "^1.0",
"tracy\/tracy": "^2.10"
},
"time": "2025-01-06T10:15:02+00:00",
"time": "2025-01-06T10:17:22+00:00",
"default-branch": true,
"type": "rector-extension",
"extra": {
Expand Down
Loading

0 comments on commit dd9ef30

Please sign in to comment.