-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Show Expr::countDistinct() and Expr::concat() use variable-length argument lists #9909
Conversation
Not sure why this wasn't addressed in #8319 |
There is a (small) BC-break for extending classes: https://3v4l.org/qQUlA |
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
Co-authored-by: Grégoire Paris <postmaster@greg0ire.fr>
Thanks Grégoire. I wonder if a few other instances of the |
As to the BC-break for extending Expr... that's a good point... is this something that happens with Expr? |
I'm really not sure how to find out 😅 … all I know is that it is not |
Good point, I suppose anyone could want a better version of these methods... where they could prefer a lower-case |
Maybe retarget to 3.0.x then, and make sure that there are no other occurrences of |
I've changed the target for this PR. And a quick search of |
I think even if you tried it wouldn't work, as this class extends another one defined by PHP itself. You would probably end up with an incompatible signature. |
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.
Good catch, just some nit-picking.
Co-authored-by: Alexander M. Turek <me@derrabus.de>
Co-authored-by: Alexander M. Turek <me@derrabus.de>
Thanks Alexander |
It is not covered yet, and that makes contributions to these commands hard.
Head branch was pushed to by a user without write access
Please rebase interactively, get rid of 58df2e1 and squash all other commits into one. |
Sorry, made even more of a mess of the commit history (I'm putting it down to the heat)... I've opened a new one, which uses |
Why don't you reopen and force push instead? |
While I created a branch for this change, I wasn’t paying attention, and committed to the numbered branch… and when it came to the rebase, I was rushing, as I’m cooking food atm and nearly burnt the rice :-) |
Slow down lol |
The functions
Expr::countDistinct()
andExpr::concat()
both usefunc_get_args()
to accept a variable number of arguments.They should explicitly show this via the "
...
" operator, which has been supported since PHP 5.6.