Skip to content

Conversation

@szepeviktor
Copy link
Contributor

@szepeviktor
Copy link
Contributor Author

I'm totally clueless.
Add a noop command (in this PR) and a rule that does the actual work???

@ondrejmirtes
Copy link
Member

ondrejmirtes commented Nov 3, 2020

There are many rules in this codebase itself... The core logic of this rule would look something like this:

public function getNodeType(): string
{
    return FuncCall::class
}

public function processNode(Node $node, Scope $scope): array
{
    if ($node->name !== 'PHPStan\dumpType') {
        return [];
    }

    return [$scope->getType($node->args[0]->value)->describe(VerbosityLevel::precise())];
}

@szepeviktor
Copy link
Contributor Author

Here I am. I hope someone helps me (me === not a developer).

@ondrejmirtes
Copy link
Member

Superseded by: c24c8ef

Thanks.

@szepeviktor
Copy link
Contributor Author

Thank you

@szepeviktor szepeviktor deleted the patch-2 branch November 4, 2020 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Real debugging support

2 participants