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
When using openssl_sign, signature variable is reported as mixed when it should be reported as string. As a result rector tool is adding (string) cast for base64_encode($var) when used. Then after rector psalm complains about unnecessary cast to string.
Bug report
When using
openssl_sign
, signature variable is reported as mixed when it should be reported as string. As a resultrector
tool is adding(string)
cast forbase64_encode($var)
when used. Then after rector psalm complains about unnecessary cast to string.By following docs on
openssl_sign
So type should not be changed from string to mixed after
openssl_sign()
is used.Code snippet that reproduces the problem
https://phpstan.org/r/5567ebe6-946a-4f5d-a0e0-871133d0cb33
Expected output
Dumped type: string
Did PHPStan help you today? Did it make you happy in any way?
No response
The text was updated successfully, but these errors were encountered: