5.22.0
What's Changed
Features
- Allow inline comments in typedef shapes by @weirdan in #10623
- allow typedef imports from any kind of classlike by @weirdan in #10625
- Allow enum cases to be global constants by @weirdan in #10634
- New InvalidOverride issue for Override attribute by @edsrzf in #10644
- Analyze dynamic names for static property and const fetches by @edsrzf in #10629
- New MissingOverrideAttribute issue by @edsrzf in #10651
- Flag
stdClass::__construct()
calls that have arguments by @weirdan in #10661 - Improve Reflection stubs by @vudaltsov in #10091
- Forbid constructors from returning any values by @weirdan in #10686
- Report first class callables generated for unknown static methods by @weirdan in #10691
- Process
@psalm-this-out
on__construct()
as well by @weirdan in #10690 - Report invalid number of arguments for psalm-taint-* by @staabm in #10699
Fixes
- Fix ownerDocument type in dom-ext classes by @fluffycondor in #10619
- Fix numeric scalar validate filter var input return type wrong by @kkmuffme in #10621
- Stable baseline by @weirdan in #10633
- Allow sebastian/diff v6 by @simPod in #10639
- CallMap: Adjust return type for
inotify_add_watch()
toint|false
by @UlrichEckhardt in #10637 - Fix check-type when using builtin types from within a namespace by @robchett in #10648
- Do not add
callable
as a native property type by @weirdan in #10654 - Fix additional places where base_dir was broken due to missing separator by @kkmuffme in #10630
- Late binding of enum cases by @weirdan in #10655
- Suppress
UndefinedClass
inwhatever_exists()
by @weirdan in #10659 - Fix parsing magic method annotations by @issidorov in #10665
- Strip callmap prefixes from parameter names by @weirdan in #10666
- Narrow
ord()
return type toint<0,255>
by @weirdan in #10676 - Template union object incorrect assertions by @robchett in #10677
- Don't show backtrace in
InvalidDocblock
issue message by @weirdan in #10679 - Class consts in array shapes by @weirdan in #10678
- Prevent mixed|null by @robchett in #10675
Internal changes
- Drop unused local composer repo by @weirdan in #10647
- Clarify that Pull request labels failure is to be resolved by maintainers by @weirdan in #10649
- Fix unstable
hasFullyQualified(Interface|Enum)()
by @weirdan in #10603 - Revert partial mistakenly pushed fix by @danog in #10671
Full Changelog: 5.21.1...5.22.0