Fix getFunctionIdsFromCallableArg to return the function id for array($this, 'foo') in params providers for example #12902
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.
|