Skip to content
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

[11.x] More specific parameter type in CastsInboundAttributes #52536

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

lorenzolosa
Copy link
Contributor

In the documentation about inbound casting, the $attributes parameter is (correctly) defined as array<string, mixed>, and likewise in the stubs created with php artisan make:cast --inbound. However, in the CastsInboundAttributes interface, it's a simple array. This PR aligns the interface source code with docs and stubs, and with a more precise definition - similarly to CastsAttributes, too.

@taylorotwell taylorotwell merged commit 326d805 into laravel:11.x Aug 21, 2024
31 checks passed
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