Updated Rector to commit caba1a00f6c66fe383ed38624087f6dd527808c6

caba1a00f6 Completely remove __get() method on AbstractRector (#5245)
This commit is contained in:
Tomas Votruba 2023-11-12 11:46:07 +00:00
parent 55d6c6f50a
commit 88ba2c5647
2 changed files with 2 additions and 23 deletions

View File

@ -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
*/

View File

@ -89,27 +89,6 @@ CODE_SAMPLE;
* @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;