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
Phpstan reports an error when concatenating arrays with +. It only seems to happen when the type of the arrays is a union (e.g. $c = ['a' => 5] + ['b' => 6]; does not report an error).
This issue was introduced in 0.12.97, it does not occur in the previous version.
Bug report
Phpstan reports an error when concatenating arrays with
+
. It only seems to happen when the type of the arrays is a union (e.g.$c = ['a' => 5] + ['b' => 6];
does not report an error).This issue was introduced in 0.12.97, it does not occur in the previous version.
Code snippet that reproduces the problem
https://phpstan.org/r/0fea1806-6978-44a7-b5e9-eed6d2d5660c
Expected output
No errors.
The text was updated successfully, but these errors were encountered: