mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-31 12:42:05 +01:00
fix cs
This commit is contained in:
parent
17f227997b
commit
b35e0e54e5
@ -58,6 +58,13 @@ final class GetterToPropertyRector extends AbstractRector
|
||||
|
||||
public function isCandidate(Node $node): bool
|
||||
{
|
||||
if (! $node instanceof MethodCall) {
|
||||
return false;
|
||||
}
|
||||
|
||||
dump($node);
|
||||
die;
|
||||
|
||||
// finds $var = $this->get('some_service');
|
||||
// finds $var = $this->get('some_service')->getData();
|
||||
if ($node instanceof Assign && ($node->expr instanceof MethodCall || $node->var instanceof MethodCall)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user