Skip to content

fix(analyzer): fix crash when analzing first class callable #1221

fix(analyzer): fix crash when analzing first class callable

fix(analyzer): fix crash when analzing first class callable #1221

Triggered via pull request May 19, 2025 05:58
Status Failure
Total duration 2m 6s
Artifacts

macos-scan.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
UndefinedPropertyFetch: src/Psalm/Type/Atomic/TArray.php#L87
src/Psalm/Type/Atomic/TArray.php:87:49: UndefinedPropertyFetch: Instance property Psalm\Type\Atomic::$type_params is not defined (see https://psalm.dev/039)
MixedArgument: src/Psalm/Type/Atomic/TArray.php#L87
src/Psalm/Type/Atomic/TArray.php:87:49: MixedArgument: Argument 1 of count cannot be mixed, expecting Countable|array<array-key, mixed> (see https://psalm.dev/030)
MixedArrayAccess: src/Psalm/Type/Atomic/TArray.php#L92
src/Psalm/Type/Atomic/TArray.php:92:38: MixedArrayAccess: Cannot access array value on mixed variable $other_type->type_params (see https://psalm.dev/051)
MixedArgument: src/Psalm/Type/Atomic/TArray.php#L92
src/Psalm/Type/Atomic/TArray.php:92:38: MixedArgument: Argument 1 of Psalm\Type\Union::equals cannot be mixed, expecting Psalm\Type\Union (see https://psalm.dev/030)
UndefinedPropertyFetch: src/Psalm/Type/Atomic/TKeyedArray.php#L654
src/Psalm/Type/Atomic/TKeyedArray.php:654:48: UndefinedPropertyFetch: Instance property Psalm\Type\Atomic::$properties is not defined (see https://psalm.dev/039)
MixedArgument: src/Psalm/Type/Atomic/TKeyedArray.php#L654
src/Psalm/Type/Atomic/TKeyedArray.php:654:48: MixedArgument: Argument 1 of count cannot be mixed, expecting Countable|array<array-key, mixed> (see https://psalm.dev/030)
UndefinedPropertyFetch: src/Psalm/Type/Atomic/TKeyedArray.php#L658
src/Psalm/Type/Atomic/TKeyedArray.php:658:52: UndefinedPropertyFetch: Instance property Psalm\Type\Atomic::$fallback_params is not defined (see https://psalm.dev/039)
MixedArrayAccess: src/Psalm/Type/Atomic/TKeyedArray.php#L663
src/Psalm/Type/Atomic/TKeyedArray.php:663:52: MixedArrayAccess: Cannot access array value on mixed variable $other_type->fallback_params (see https://psalm.dev/051)
MixedArgument: src/Psalm/Type/Atomic/TKeyedArray.php#L663
src/Psalm/Type/Atomic/TKeyedArray.php:663:52: MixedArgument: Argument 1 of Psalm\Type\Union::equals cannot be mixed, expecting Psalm\Type\Union (see https://psalm.dev/030)
MixedArrayAccess: src/Psalm/Type/Atomic/TKeyedArray.php#L667
src/Psalm/Type/Atomic/TKeyedArray.php:667:52: MixedArrayAccess: Cannot access array value on mixed variable $other_type->fallback_params (see https://psalm.dev/051)