Skip to content

FilterProcessResult.stub not being respected, RenderCallbackRuleTest failing #938

@mglaman

Description

@mglaman

Bug report

RenderCallbackRuleTest has started to fail against FilterProcessResult. The stub identifies $callable as callable-string but now PHPStan thinks it is just string

    /**
     * @param callable-string $callback
     * @param array<int|string, mixed> $args
     */
    public function createPlaceholder($callback, array $args): string {

    }

It broke with 2.1.38, opened phpstan/phpstan#14118

Issues to review

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions