Skip to content

phpstan analyze crash since upgrade to 1.12.11 #12108

@jcglombard

Description

@jcglombard

Bug report

Since updating to version 1.12.11, I can no longer analyze my symfony project. PHPStan crashes with the error:

Internal error: PHPStan\PhpDocParser\Lexer\Lexer::__construct(): Argument #1 ($parseDoctrineAnnotations) must be
of type bool, PHPStan\PhpDocParser\ParserConfig given, called in
C:...\vendor\symfony\type-info\TypeResolver\StringTypeResolver.php on
line 69 while analysing file c:\my_project\src\Command\OpcachePreloadCommand.php

PHP version: 8.3.13
Symfony: 7.1.8

verbose log is in attachment.

phpstan-error.log

Code snippet that reproduces the problem

No response

Expected output

Analyze report

Did PHPStan help you today? Did it make you happy in any way?

No response

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