1.10.49 #10287
ondrejmirtes
started this conversation in
General
1.10.49
#10287
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bleeding edge 🔪
GenericObjectType
(#2818, #2821)int|false
is converted to typeint|bool
when using template. #7984, String accessory types are normalized to string types when used with generics #7301, Integer ranges in array keys do not carry through generics #7087, numeric-string not preserved when passed into generic constructor #5594, \Ds\Map::get() false positive with numeric-string #5592, Type narrowed to non-empty-string is not retained by template #9472, Generic return type resolved from callable return type wrong #9764, PHPStan loses type resolution when creating a union ofint
andnumeric-string
#10092If 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
: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
Improvements 🔧
void
return tonull
after call (#2778), Return typevoid
is adopted by variables #6720, thanks @herndlm!Bugfixes 🐛
count(list)
regression (#2813), thanks @staabm!Function signature fixes 🤖
SimpleXMLElement
method return types benevolent (when they returnstatic|null
) (phpstan/phpstan-src@fb76c9f)This discussion was created from the release 1.10.49.
Beta Was this translation helpful? Give feedback.
All reactions