File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed
Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -71,35 +71,6 @@ abstract class AbstractRector extends NodeVisitorAbstract implements RectorInter
7171
7272 private ?int $ toBeRemovedNodeId = null ;
7373
74- /**
75- * @var array<string, object>
76- */
77- private array $ deprecatedDependencies = [];
78-
79- /**
80- * @var array<class-string, array<string, bool>>
81- */
82- private array $ cachedDeprecatedDependenciesWarning = [];
83-
84- /**
85- * Handle deprecated dependencies compatbility
86- */
87- public function __get (string $ name ): mixed
88- {
89- if (! isset ($ this ->cachedDeprecatedDependenciesWarning [static ::class][$ name ])) {
90- echo sprintf (
91- 'Get %s property from AbstractRector on %s is deprecated, inject via __construct() instead ' ,
92- $ name ,
93- static ::class
94- );
95- echo PHP_EOL ;
96-
97- $ this ->cachedDeprecatedDependenciesWarning [static ::class][$ name ] = true ;
98- }
99-
100- return $ this ->deprecatedDependencies [$ name ] ?? null ;
101- }
102-
10374 public function autowire (
10475 NodeNameResolver $ nodeNameResolver ,
10576 NodeTypeResolver $ nodeTypeResolver ,
You can’t perform that action at this time.
0 commit comments