skip missing scope

This commit is contained in:
TomasVotruba 2021-03-18 11:59:01 +01:00
parent 1abe1f8c1b
commit 6e955b9d80

View File

@ -109,8 +109,10 @@ CODE_SAMPLE
private function shouldSkip(ClassMethod $classMethod): bool
{
/** @var Scope $scope */
$scope = $classMethod->getAttribute(AttributeKey::SCOPE);
if (! $scope instanceof Scope) {
return true;
}
// catch only classes without namespace
if ($scope->getNamespace() !== null) {