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