mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 11:44:14 +01: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…
x
Reference in New Issue
Block a user