Phpstan error "Class Stringable not found." at all enums
a-r-m-i-n opened this issue · 1 comments
a-r-m-i-n commented
Hi,
since an update of phpstan to 0.12.99 all places in my code where I reference an enumeration,
I get these messages:
------ --------------------------------------------------------------------
Line Form/Portal/InvoiceItemType.php
------ --------------------------------------------------------------------
7 Class Stringable not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
23 Class Stringable not found.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
------ --------------------------------------------------------------------
Unfortunately, they are unignorable. Thanks for any hints!
a-r-m-i-n commented
I've figured out that adding
parameters:
scanFiles:
- ../vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php
to phpstan config, will fix this.