mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 14:27:14 +01:00
Updated Rector to commit caba1a00f6c66fe383ed38624087f6dd527808c6
caba1a00f6
Completely remove __get() method on AbstractRector (#5245)
This commit is contained in:
parent
55d6c6f50a
commit
88ba2c5647
@ -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
|
||||
*/
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user