Remove reference from return of getBounded#352
Open
kamil-tekiela wants to merge 4 commits intojoomla-framework:3.x-devfrom
Open
Remove reference from return of getBounded#352kamil-tekiela wants to merge 4 commits intojoomla-framework:3.x-devfrom
kamil-tekiela wants to merge 4 commits intojoomla-framework:3.x-devfrom
Conversation
Contributor
|
I think the Not sure if it's worth to do it, on the other side it's really unlikely that anyone overrides this method. |
Contributor
@HLeithner "worse"? Or "worth"? |
Contributor
|
I would play save and merge it into the next possible major version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From what I can see the reference is unused. It might be a leftover from some old code.
Reasoning:
valueproperty would change the binding.startQueryis the only method which uses the referenced array but it doesn't take a referenced parameter, so it cannot change the referenced array.https://www.php.net/manual/en/features.gc.refcounting-basics.php#features.gc.compound-types
Technically, this is an ABI break, so I understand if you may not want to merge it because of that.
Code to test it and play around locally without DB: