You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
8716 / 8716...Uncaught TypeError: Psalm\Internal\Codebase\ConstantTypeResolver::getLiteralTypeFromScalarValue(): Argument #1 ($value) must be of type array|string|int|float|bool|null, PropertyHookType given, called in /mnt/local/home/next/Code/vendor/vimeo/psalm/src/Psalm/Internal/Codebase/Reflection.php on line 166 and defined in /mnt/local/home/next/Code/vendor/vimeo/psalm/src/Psalm/Internal/Codebase/ConstantTypeResolver.php:371
Stack trace:
#0 /mnt/local/home/next/Code/vendor/vimeo/psalm/src/Psalm/Internal/Codebase/Reflection.php(166): Psalm\Internal\Codebase\ConstantTypeResolver::getLiteralTypeFromScalarValue(PropertyHookType::Get)
#1 /mnt/local/home/next/Code/vendor/vimeo/psalm/src/Psalm/Internal/Codebase/Scanner.php(471): Psalm\Internal\Codebase\Reflection->registerClass(Object(ReflectionClass))
#2 /mnt/local/home/next/Code/vendor/vimeo/psalm/src/Psalm/Internal/Codebase/Scanner.php(265): Psalm\Internal\Codebase\Scanner->convertClassesToFilePaths(Object(Psalm\Internal\Codebase\ClassLikes))
#3 /mnt/local/home/next/Code/vendor/vimeo/psalm/src/Psalm/Codebase.php(436): Psalm\Internal\Codebase\Scanner->scanFiles(Object(Psalm\Internal\Codebase\ClassLikes), 3)
#4 /mnt/local/home/next/Code/vendor/vimeo/psalm/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php(487): Psalm\Codebase->scanFiles(3)
#5 /mnt/local/home/next/Code/vendor/vimeo/psalm/src/Psalm/Internal/Cli/Psalm.php(383): Psalm\Internal\Analyzer\ProjectAnalyzer->check('/mnt/local/home...', true)
#6 /mnt/local/home/next/Code/vendor/vimeo/psalm/psalm(9): Psalm\Internal\Cli\Psalm::run(Array)
#7 /mnt/local/home/next/Code/vendor/bin/psalm(119): include('/mnt/local/home...')
Hey @mlahargou, can you reproduce the issue on https://psalm.dev? These will be used as phpunit tests when implementing the feature or fixing this bug.
Bug report
I started getting an odd psalm error:
Reproduction:
I've created an example repo for demo purposes: https://github.com/mlahargou/psalm-phpstan-bug
The text was updated successfully, but these errors were encountered: