Skip to content

Conversation

@stancl
Copy link
Contributor

@stancl stancl commented May 9, 2025

This fixes a case where you set a default value for a route parameter with a binding field (tenant:slug) but not for that same parameter without a binding field (tenant).

I overlooked this in my original PR, essentially a false positive due to the structure of the tests (all defaults were always set). Now I temporarily remove the default value while repeating some assertions. Can confirm the tests fail without the fix. And the fix just makes sure to check the right default (with the binding field in mind).

…eld, where a default is not present for that same parameter without a binding field
@taylorotwell taylorotwell merged commit aa6538e into laravel:12.x May 9, 2025
60 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