Backed enum value changed to Atomic instead of scalar int or strings #1
Annotations
5 errors
InvalidNullableReturnType:
src/Psalm/Internal/Codebase/ConstantTypeResolver.php#L63
src/Psalm/Internal/Codebase/ConstantTypeResolver.php:63:8: InvalidNullableReturnType: The declared return type 'Psalm\Type\Atomic' for Psalm\Internal\Codebase\ConstantTypeResolver::resolve is not nullable, but 'Psalm\Type\Atomic|null' contains null (see https://psalm.dev/144)
|
NullableReturnStatement:
src/Psalm/Internal/Codebase/ConstantTypeResolver.php#L342
src/Psalm/Internal/Codebase/ConstantTypeResolver.php:342:32: NullableReturnStatement: The declared return type 'Psalm\Type\Atomic' for Psalm\Internal\Codebase\ConstantTypeResolver::resolve is not nullable, but the function returns 'Psalm\Type\Atomic\TLiteralInt|Psalm\Type\Atomic\TLiteralString|null' (see https://psalm.dev/139)
|
InvalidArgument:
src/Psalm/Internal/Codebase/Methods.php#L631
src/Psalm/Internal/Codebase/Methods.php:631:35: InvalidArgument: Argument 1 of Psalm\Type\Union::__construct expects non-empty-array<array-key, Psalm\Type\Atomic>, but list{Psalm\Type\Atomic\TLiteralInt|Psalm\Type\Atomic\TLiteralString|null} provided (see https://psalm.dev/004)
|
PossiblyUnusedMethod:
src/Psalm/Type.php#L266
src/Psalm/Type.php:266:28: PossiblyUnusedMethod: Cannot find any calls to method Psalm\Type::getLiteral (see https://psalm.dev/087)
|
build
Process completed with exit code 2.
|