Skip to content

Commit

Permalink
Updated Rector to commit caba1a00f6c66fe383ed38624087f6dd527808c6
Browse files Browse the repository at this point in the history
rectorphp/rector-src@caba1a0 Completely remove __get() method on AbstractRector (#5245)
  • Loading branch information
TomasVotruba committed Nov 12, 2023
1 parent 55d6c6f commit 88ba2c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 23 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 = '61d68c89b434271c793fbbcc8e6252e9f3e0e7eb';
public const PACKAGE_VERSION = 'caba1a00f6c66fe383ed38624087f6dd527808c6';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-11-12 03:53:10';
public const RELEASE_DATE = '2023-11-12 12:43:22';
/**
* @var int
*/
Expand Down
21 changes: 0 additions & 21 deletions src/Rector/AbstractRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,27 +89,6 @@ abstract class AbstractRector extends NodeVisitorAbstract implements RectorInter
* @var int|null
*/
private $toBeRemovedNodeId;
/**
* @var array<string, object>
*/
private $deprecatedDependencies = [];
/**
* @var array<class-string, array<string, bool>>
*/
private $cachedDeprecatedDependenciesWarning = [];
/**
* Handle deprecated dependencies compatbility
* @return mixed
*/
public function __get(string $name)
{
if (!isset($this->cachedDeprecatedDependenciesWarning[static::class][$name])) {
echo \sprintf('Get %s property from AbstractRector on %s is deprecated, inject via __construct() instead', $name, static::class);
echo \PHP_EOL;
$this->cachedDeprecatedDependenciesWarning[static::class][$name] = \true;
}
return $this->deprecatedDependencies[$name] ?? null;
}
public function autowire(NodeNameResolver $nodeNameResolver, NodeTypeResolver $nodeTypeResolver, SimpleCallableNodeTraverser $simpleCallableNodeTraverser, NodeFactory $nodeFactory, Skipper $skipper, NodeComparator $nodeComparator, CurrentFileProvider $currentFileProvider, CreatedByRuleDecorator $createdByRuleDecorator, ChangedNodeScopeRefresher $changedNodeScopeRefresher) : void
{
$this->nodeNameResolver = $nodeNameResolver;
Expand Down

0 comments on commit 88ba2c5

Please sign in to comment.