mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-21 07:52:01 +02:00
fix scoping of OxidEsales
This commit is contained in:
parent
128910963a
commit
cabe6d5e62
@ -168,5 +168,7 @@ return [
|
||||
'PhpParser\*',
|
||||
// mimics https://github.com/phpstan/phpstan-src/commit/23d5ca04ab6213f53a0e6c2e77857b23a73aa41d
|
||||
'Hoa\*',
|
||||
// @see https://github.com/rectorphp/rector/issues/2955
|
||||
'OxidEsales\*',
|
||||
],
|
||||
];
|
||||
|
@ -11,7 +11,6 @@ use PhpParser\Node\Expr\FuncCall;
|
||||
use PhpParser\Node\Expr\MethodCall;
|
||||
use PhpParser\Node\Expr\StaticCall;
|
||||
use PhpParser\Node\FunctionLike;
|
||||
use PhpParser\Node\Identifier;
|
||||
use PhpParser\Node\Name;
|
||||
use Rector\Core\Rector\AbstractRector;
|
||||
use Rector\Core\RectorDefinition\CodeSample;
|
||||
@ -113,7 +112,7 @@ PHP
|
||||
return false;
|
||||
}
|
||||
|
||||
if (! $node->name instanceof Identifier && ! $node->name instanceof Name) {
|
||||
if (! $node->name instanceof Name) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user