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
I just realized that array_product([true, false, true, false]) (called with array<bool>) is amazing to find out whether all values in an array are true :D
Possibly a bit evil, but I wonder if it's something too ugly too expose, or worth documenting here:
I just realized that
array_product([true, false, true, false])
(called witharray<bool>
) is amazing to find out whether all values in anarray
aretrue
:DPossibly a bit evil, but I wonder if it's something too ugly too expose, or worth documenting here:
psalm/stubs/CoreGenericFunctions.phpstub
Lines 817 to 829 in 64dc2ff
array<true>
, the output is1
array<false>
, the output is0
array<bool>
, the output is0|1
The text was updated successfully, but these errors were encountered: