You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading from 1.0.41 to 1.0.43, PHPStan is now expecting the third parameter to be an array if I use some named parameters when calling the function.
However, the documentation states that the second signature, which takes an array as the third parameter, is not usable with named parameters. Rather, the third parameter should be an non-negative int when using named parameters
Did PHPStan help you today? Did it make you happy in any way?
Thanks for all the hard work.
The text was updated successfully, but these errors were encountered:
mattschlosser
changed the title
setcookie reports wrong signature when using named paramaterssetcookie reports wrong signature when using named paramaters
Nov 20, 2023
Bug report
setcookie
has two signatures.After upgrading from 1.0.41 to 1.0.43, PHPStan is now expecting the third parameter to be an array if I use some named parameters when calling the function.
However, the documentation states that the second signature, which takes an array as the third parameter, is not usable with named parameters. Rather, the third parameter should be an non-negative int when using named parameters
Code snippet that reproduces the problem
https://phpstan.org/r/fdfab061-a7fe-40f1-926a-a340a3202ccb
Expected output
No error should be reported as it is valid.
Did PHPStan help you today? Did it make you happy in any way?
Thanks for all the hard work.
The text was updated successfully, but these errors were encountered: