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
Psalm output (using commit 7c339c1):
INFO: Trace - 6:25 - $arr: array{2: "aa", 5: "a", zz: "z"}
INFO: UnusedVariable - 5:1 - $arr is never referenced or the value is not used
This fixes int offset inference and adds handling for array unpacks in
constant arrays. Mostly it's copy/pasted from `ArrayAnalyzer` with
further adjustments.
Fixesvimeo#6263Fixesvimeo#6289
This fixes int offset inference and adds handling for array unpacks in
constant arrays. Mostly it's copy/pasted from `ArrayAnalyzer` with
further adjustments.
Fixesvimeo#6263Fixesvimeo#6289
https://psalm.dev/r/d7d194894c
Expected: key for the "aa" element should be inferred to be 6 (https://3v4l.org/TYqhH)
Actual: it's inferred to be 2
The text was updated successfully, but these errors were encountered: