Skip to content

PHPStan 0.12.41 - Exception #3820

@swiffer

Description

@swiffer

Bug report

After upgrading to 0.12.41 I get the following error:

Exception: Return value of PHPStan\PhpDoc\ResolvedPhpDocBlock::getNameScope() must be an instance of PHPStan\Analyser\NameScope, null returned
In [phar://./vendor/phpstan/phpstan/phpstan/src/PhpDoc/ResolvedPhpDocBlock.php, line 190]

Code snippet that reproduces the problem

Don't know what exactly is the problem here, analyse worked fine in 0.12.40

Expected output

Should not throw an exception?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions