fix scoping of OxidEsales

This commit is contained in:
TomasVotruba 2020-02-29 01:32:26 +01:00
parent 128910963a
commit cabe6d5e62
2 changed files with 3 additions and 2 deletions

View File

@ -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\*',
],
];

View File

@ -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;
}