Skip to content

[12.x] add generics to Model attribute related methods and properties #55962

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 9, 2025

Conversation

taka-oyama
Copy link
Contributor

Hi again.

This is another PR to add and improve the PhpDoc by adding generics to all things attributes related in Eloquent.

This will result in better static type checking when using tools like phpstan or IDEs like PhpStorm.

@taka-oyama taka-oyama changed the title fix: add generics to Model attribute related methods and properties. [12.x] add generics to Model attribute related methods and properties. Jun 9, 2025
@taka-oyama taka-oyama changed the title [12.x] add generics to Model attribute related methods and properties. [12.x] add generics to Model attribute related methods and properties Jun 9, 2025
@taylorotwell taylorotwell merged commit 06f7848 into laravel:12.x Jun 9, 2025
61 checks passed
@taka-oyama taka-oyama deleted the fix/add-types-to-model-attrs branch June 10, 2025 00:23
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