Improvements 🔧
- Remember assigned offset value on general arrays (phpstan/phpstan-src@0f64ca7), #2112
- Result cache optimization (phpstan/phpstan-src@67b2d1c)
- Result cache - invalidate when scanned file changed (phpstan/phpstan-src@7d279fc), #3952
- Result cache - hash autoload file and bootstrap files (phpstan/phpstan-src@3457e58), #3416
- Parameter of closure passed into
array_map
/array_filter
can resolve to a subtype of native type (phpstan/phpstan-src@bf320b0)
Bugfixes 🐛
- Invalidate
count($array)
afterarray_shift()
(phpstan/phpstan-src@6b2afbc), #4558 - Fix
@template
name clash from different scopes (phpstan/phpstan-src@527269a), #4557, #3121 - Symbol discovery - fixed looking for functions returning references (phpstan/phpstan-src@ec26a00), #3829
- First argument of
method_exists()
might remain a string (phpstan/phpstan-src@91894ff), #4573 - Added many regression tests for already fixed issues (#2837, #3096, #3891, #3544, #2675, #1897, #1801, #1711, #4432, #2268, #2298, #1903, #2927, #2434, #2220, #1871, #1707, #1664, #1661, #1656, #1613, #2682, #2689, #2714, #2846, #3309, #3357, #3534, #3608, #3669, #3920, #3261, #4289, #2568, #4209, #3034, #3117, #1971, #2869, #3024, #3134)
Function signature fixes 🤖
- Fix accepted types for fputcsv fields parameter (#451), thanks @DaveLiddament!