You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class InstanceMethodsParameterScopeFunctionRule implements Rule
{
public function getNodeType(): string
{
return FullyQualified::class;
}
public function processNode(Node $node, Scope $scope): array
{
if ($scope->getFunction() !== null) {
throw new ShouldNotHappenException('All names in the tests should not have a function scope.');
}
return [
RuleErrorBuilder::message(sprintf('Name %s found in function scope null', $node->toString()))->identifier('test.instanceOfMethodsParameterRule')->build(),