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

[10.x] Fix enums uses with optional implicit parameters #46483

Merged
merged 2 commits into from
Mar 16, 2023

Conversation

morloderex
Copy link
Contributor

Fixes the bug outlined in #46471.

Essentially this boils down to the use string typecasting when checking if you had type-hinted your controller method to expect an optional enum parameter which defaulted to null in the controller class.

The issue is only relevant for the cases where the parameter is defined as an optional parameter in the controller and uses implicit routing.

@morloderex morloderex changed the title Fix enums with optional implicit parameters [10.x] Fix enums uses with optional implicit parameters Mar 16, 2023
@morloderex morloderex force-pushed the bugfix/nullable_enums branch from 2f37c60 to 04e6512 Compare March 16, 2023 00:59
@morloderex morloderex force-pushed the bugfix/nullable_enums branch from 04e6512 to a9d33e3 Compare March 16, 2023 01:09
@taylorotwell taylorotwell merged commit 5c17d5b into laravel:10.x Mar 16, 2023
@taylorotwell
Copy link
Member

Thanks!

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