-
-
Notifications
You must be signed in to change notification settings - Fork 949
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
Keyboard addRow array support #1356
Conversation
Hummm, it seems checker broken when starting, instead of code check failed, i think it should be re-run. |
Looks to me like you're completely ignoring |
No, if the first param is array, all button should be supplied in the first param, if not, If you want, there are two ways:
|
Oh yeah, I've misread the func_get_args there... The problem is though, that |
Sorry but, i saw this
My test code is:
Then it returns 0,
And i saw your code just now:
Okay, then it is an array now |
Yeah, that's kind of a "problem" with the library for now... We currently don't have a strong object coupling with keyboards... |
Ok, i tried many ways, include this:
And this:
This:
It is really hard to compatible with all situations, I submit this due to laravel's model's where function,
Any more opinion or advice? |
Summary
make addRow both support button args and array of buttons.
I haven't test it.
I am sure it will not break this file but i don't know if there is any file else used this function like override or something, if so, it will break.
Please help me finish this.