Skip to content

[11.x] Improve docblocks for morph maps in Relation#54560

Merged
taylorotwell merged 3 commits into
laravel:11.xfrom
cosmastech:patch-6
Feb 11, 2025
Merged

[11.x] Improve docblocks for morph maps in Relation#54560
taylorotwell merged 3 commits into
laravel:11.xfrom
cosmastech:patch-6

Conversation

@cosmastech

Copy link
Copy Markdown
Contributor

Almost made a mistake this morning:

Relation::enforceMorphMap([
    Team::class => 'team',
    Sport::class => 'sport',
]);

I figured I may help others to avoid this mistake by adding the docblocks 😅

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.

2 participants