Improvements 🔧
- Remove unnecessary
ConstantArrayType::getKeyType()
(#1173), thanks @herndlm! - Improve
ConstantArrayType
union performance (#1176), thanks @herndlm! - Do not evaluate constructors as having side effects by default, Handle side effects of constructors in
new
(#1205), thanks @VasekPurchart!
Bleeding edge 🔪
If you want to see the shape of things to come and adopt bleeding edge features early, you can include this config file in your project's phpstan.neon
:
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
Of course, there are no backwards compatibility guarantees when you include this file. The behaviour and reported errors can change in minor versions with this file included. Learn more
Bugfixes 🐛
- Fix
curl_getinfo($ch, CURLINFO_CONTENT_TYPE)
(#1170), #6929, thanks @oschwald! - Fix return types for
bcdiv()
,bcmod()
,bcpowmod()
andbcsqrt()
in PHP 8.0 and higher (#1152), #5134, thanks @W0rma! - Add support for
int
andbool
args forstrlen()
(#1162), thanks @fluffycondor! - Add support for
float
andnull
forstrlen()
, improve support for booleans (#1199), thanks @fluffycondor! - Feature/undefined expression allowed (#1174), #6107, #5971, #5337, #6899, thanks @rajyan!
- Fix/coalesce simulate ternary (#1193), thanks @rajyan!
- Support variadic parameter in
array_replace
(#1209), #7020, thanks @herndlm! - ObjectType - fix imprecise cache key issue (phpstan/phpstan-src@ee93446), #6944
- Fix int overflow internal error (phpstan/phpstan-src@c5d0902), #6979