Features
- Psalm now prevents destructuring of non-arrays (#2220)
Bugfixes
- Prevent fatal error when templated var has
static
return (#2192) - Load functions declared in a trait when a class using that trait is used (#2228)
- Refine closure type even when a param type was declared, as long as they're compatible (#2215)
- treat continuous assertions on interfaces as redundant (#2234, #2237)
- Prevent fatal error when yielding from class with too many template params
- Do better inference when yielding from
list
s (#2251) - Unused code detection fix false positive when incrementing var inside do-while condition (#2244)
- Add better
list
type compatibility forarray_merge
andarray_slice
(#2235, #2246)