Skip to content

Fix getFunctionIdsFromCallableArg to return the function id for array($this, 'foo') in params providers for example #12902

Fix getFunctionIdsFromCallableArg to return the function id for array($this, 'foo') in params providers for example

Fix getFunctionIdsFromCallableArg to return the function id for array($this, 'foo') in params providers for example #12902

Triggered via pull request February 29, 2024 15:58
Status Failure
Total duration 1m 10s
Artifacts

shepherd.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors
PossiblyNullPropertyFetch: tests/Config/Plugin/Hook/CallUserFuncLikeParamsProvider.php#L42
tests/Config/Plugin/Hook/CallUserFuncLikeParamsProvider.php:42:13: PossiblyNullPropertyFetch: Cannot get property on possibly null variable $function_call_arg of type PhpParser\Node\Arg|null (see https://psalm.dev/082)
PossiblyNullPropertyAssignment: tests/Config/Plugin/Hook/CallUserFuncLikeParamsProvider.php#L63
tests/Config/Plugin/Hook/CallUserFuncLikeParamsProvider.php:63:17: PossiblyNullPropertyAssignment: $param_type_union with possibly null type 'Psalm\Type\Union|null' cannot be assigned to (see https://psalm.dev/081)
InaccessibleProperty: tests/Config/Plugin/Hook/CallUserFuncLikeParamsProvider.php#L63
tests/Config/Plugin/Hook/CallUserFuncLikeParamsProvider.php:63:17: InaccessibleProperty: Psalm\Type\Union::$possibly_undefined is marked readonly (see https://psalm.dev/054)
InvalidArgument: tests/Config/Plugin/Hook/CallUserFuncLikeParamsProvider.php#L70
tests/Config/Plugin/Hook/CallUserFuncLikeParamsProvider.php:70:13: InvalidArgument: Argument 1 of Psalm\Type\Atomic\TKeyedArray::__construct expects non-empty-array<int|string, Psalm\Type\Union>, but list{0?: Psalm\Type\Union|null, ...<Psalm\Type\Union|null>} provided (see https://psalm.dev/004)
build
Process completed with exit code 2.