File tree Expand file tree Collapse file tree
rules/Transform/Rector/Assign Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55namespace Rector \Transform \Rector \Assign ;
66
7+ use Rector \Exception \ShouldNotHappenException ;
78use PhpParser \Node ;
89use PhpParser \Node \Expr \Assign ;
910use Rector \Configuration \Deprecation \Contract \DeprecatedInterface ;
1819 */
1920final class PropertyAssignToMethodCallRector extends AbstractRector implements ConfigurableRectorInterface, DeprecatedInterface
2021{
21- /**
22- * @var PropertyAssignToMethodCall[]
23- */
24- private array $ propertyAssignsToMethodCalls = [];
25-
2622 public function getRuleDefinition (): RuleDefinition
2723 {
2824 return new RuleDefinition ('Turn property assign of specific type and property name to method call ' , [
@@ -55,7 +51,7 @@ public function getNodeTypes(): array
5551 */
5652 public function refactor (Node $ node ): ?Node
5753 {
58- throw new \ Rector \ Exception \ ShouldNotHappenException (sprintf (
54+ throw new ShouldNotHappenException (sprintf (
5955 '%s is deprecated as too narrow use-case and never used. Create custom rector instead if needed. ' ,
6056 self ::class
6157 ));
You can’t perform that action at this time.
0 commit comments