-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[5.7] Further renaming of scheme from schema #26640
[5.7] Further renaming of scheme from schema #26640
Conversation
* | ||
* @deprecated In 5.8, this will change to $cachedScheme |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's deprecated, you need something to supersede it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the name were private
it would not constitute a minor BC change. I don't actually think people are adding macros to UrlGenerator or extending the class in a way where they are directly accessing the cached/in-memory value of the calculated scheme, but to do our due diligence I think we should push the rename to 5.8, just in case.
In the mean time, there is nothing that can simply supersede the original protected property. All it does is track some state, and introducing a secondary (newly named) property would unnecessarily complicate the code for no real value.
Thanks |
…UrlGenerator` - rename `$cachedSchema` property to `$cachedScheme` in `Routing\UrlGenerator`, since in laravel#26640 PR property is deprecated;
…UrlGenerator` - rename `$cachedSchema` property to `$cachedScheme` in `Routing\UrlGenerator`, since in laravel#26640 PR property is deprecated;
…UrlGenerator` (#26728) - rename `$cachedSchema` property to `$cachedScheme` in `Routing\UrlGenerator`, since in laravel/framework#26640 PR property is deprecated;
Further fix naming of scheme for schema as parameter in
forceScheme()
.A separate PR for 5.8 will follow that will further rename the protected property
$cachedSchema
to$cachedScheme
. That change is left out of 5.7 since it is a minor BC break. In 5.8, even though it is a minor BC break, the likelihood of anyone using$cachedSchema
is extremely low.No tests here as there is not testable changes (in behavior).