-
-
Notifications
You must be signed in to change notification settings - Fork 928
Closed
Description
Bug report
I wanted to upgrade to phpstan 2 but I ended up with errors like this:
Internal error: PHPStan\PhpDocParser\Lexer\Lexer::__construct(): Argument #1 ($config) must be of type PHPStan\PhpDocParser\ParserConfig, true given, called in
[...]/apps/website/vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Factory/AbstractPHPStanFactory.php on line 47 while analysing file
[...]/apps/website/src/BackOffice/Command/Invoicing/SomeRandomCommand.php
Some of them was solvable by upgrading local dependencies. Some others are blocking because I cannot upgrade local dependencies. By "local" I mean the vendor
/composer.json
of my project, because I'm installing phpstan in another folder. (I also tried to install phpstan directly on the project, still didn't work)
Code snippet that reproduces the problem
No response
Expected output
The expected output is no internal error. Or something more clear about what's wrong. (isn't super-weird that phpstan is loading the local dependencies instead of its own?)
Did PHPStan help you today? Did it make you happy in any way?
I'm not sure phpstan makes me happy, most part of the time it makes my life harder 😄 . But I'm really glad it avoids so much errors in production. 🫶 Thanks
Metadata
Metadata
Assignees
Labels
No labels