Skip to content

Conversation

@stevebauman
Copy link
Contributor

Description

Chaining browser methods after cookie() or plainCookie() results in PHP IDE's displaying an error, saying that the cookie() and plainCookie() methods are returning objects but they can only return strings:

Screen Shot 2021-10-19 at 3 15 15 PM

Fixing the return type to string|$this removes the IDE error:

Screen Shot 2021-10-19 at 3 16 08 PM

Thanks for your time! No hard feelings on closure ❤️

@taylorotwell taylorotwell merged commit aec823c into laravel:6.x Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants