Skip to content

[12.x] Fix: @return for resolveResourceRelationshipIdentifiers()#58764

Merged
taylorotwell merged 3 commits intolaravel:12.xfrom
alipowerful7:fix/return-type
Feb 12, 2026
Merged

[12.x] Fix: @return for resolveResourceRelationshipIdentifiers()#58764
taylorotwell merged 3 commits intolaravel:12.xfrom
alipowerful7:fix/return-type

Conversation

@alipowerful7
Copy link
Contributor

The resolveResourceRelationshipIdentifiers() method returns an array, but the docblock incorrectly specifies the return type as string|int. This PR fixes the docblock to correctly reflect the array return type.

* Resolves `relationships` for the resource's data object.
*
* @return string|int
* @return array
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could narrow this further down:

Suggested change
* @return array
* @return array{}|array{data: array{id: string, type: string}[]|null}

@taylorotwell taylorotwell merged commit ad2567a into laravel:12.x Feb 12, 2026
70 checks passed
@alipowerful7 alipowerful7 deleted the fix/return-type branch February 12, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants