mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-15 23:52:23 +00:00
fix naming of non-func call
This commit is contained in:
parent
6d2c6a0395
commit
e0baf3330b
|
@ -55,9 +55,13 @@ final class AssertRegExpRector extends AbstractPHPUnitRector
|
|||
return null;
|
||||
}
|
||||
|
||||
/** @var FuncCall $secondArgumentValue */
|
||||
/** @var FuncCall|Node $secondArgumentValue */
|
||||
$secondArgumentValue = $node->args[1]->value;
|
||||
|
||||
if (! $secondArgumentValue instanceof FuncCall) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (! $this->isName($secondArgumentValue, 'preg_match')) {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user