Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

SOD96
Copy link
Contributor

@SOD96 SOD96 commented Aug 28, 2025

Resolves issue #56806

Also added a test for both scenarios. Rollback my change on 896 and watch it fail.

Main issue is we allow anything in the path, yet declare a return type of string despite if a null path is passed in, a URLGenerator is returned.

This ensures that a string is always returned.

This does have the implication PRE #56684 whereby users might have been handling a URLGenerator being returned before a string was declared as the return type. Although I expect most users will have been handling strings anyway and if a URL generator was returned doing what I'm doing!

Plus the secure method feels better to utilize here?

cheers

@taylorotwell taylorotwell merged commit cb9f337 into laravel:12.x Aug 28, 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