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
in PHP 8 vsprintf will never return false, but in PHP 7 it will.
As discussed in #9877 (comment) the stubs will never fall back to the callmap - this makes declaring different return/param types between PHP versions impossible in psalm.
I suggest to change it to fall back from the stubs to the callmap if the param/return type is not declared in the stubs (but is in the callmap)
Also somehow related to #9843 since atm no consistency checking happens in-between the different versions of the callmap and the stubs either
The text was updated successfully, but these errors were encountered:
Psalm output (using commit 99a54fb):
INFO: Trace - 4:23 - $x: false|string
INFO: UnusedVariable - 3:1 - $x is never referenced or the value is not used
https://psalm.dev/r/7106f13383
in PHP 8
vsprintf
will never return false, but in PHP 7 it will.As discussed in #9877 (comment) the stubs will never fall back to the callmap - this makes declaring different return/param types between PHP versions impossible in psalm.
I suggest to change it to fall back from the stubs to the callmap if the param/return type is not declared in the stubs (but is in the callmap)
Also somehow related to #9843 since atm no consistency checking happens in-between the different versions of the callmap and the stubs either
The text was updated successfully, but these errors were encountered: