-
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
Cookie\Factory::make and cookie() helper parameters missing #21542
Comments
This is not a bug. A class implementing the contract can have extra methods in the signature if it wants to. Kindly close the issue |
I didn't say it's a bug, I opened this more like a question to the maintainers. Lack of these two arguments made it a little bit confusing to me, especially that the |
Well the contract just says that it needs these many params to be there in the function. Also it is not aware whether 1 class is implementing or more than that. They could be people who have written their own implementations. Also this repo is for bug tracking. So if you want, you can put forth a proposal in laravel/internals repo |
I checked both the functions again. And yeah the helper should match the class. I will push another PR for 5.6 so that interface matches. or you can do that if you wish |
Please do, if you can. I don't have my computer with me. |
Sure but contract change will be for 5.6 |
Description:
Illuminate\Cookie\CookieJar::make()
accepts the following list of parameters:Illuminate\Contracts\Cookie\Factory::make()
andcookie()
helper however accept only these ones:Is it intentional?
The text was updated successfully, but these errors were encountered: