What's Changed
Fixes
- Locate docblock issues on the tag's line when the node has no doc comment by @orklah in #15119
- Follow the writes inside compound assignments in loops by @orklah in #15123
- Report undefined classes inside key-of<…> and object&callable(…) by @orklah in #15128
- Keep side effects when the UnusedVariable fixer removes an assignment by @orklah in #15124
- Memoize trait methods with the capabilities of the class using the trait by @orklah in #15133
- Fix stale state in MutableUnion by @orklah in #15126
- Keep the taints of a value narrowed to a union with a scalar part by @orklah in #15129
- Keep class-like strings after a negated class_exists() by @orklah in #15139
- Infer TReturn null for a generator ending without a value by @orklah in #15140
- Fix false PossiblyInvalidArrayOffset past an int offset of a mixed value checked with isset() by @orklah in #15142
Internal changes
- Fix
TNamedObject::setValueIsStatic()ignoring$is_static_resolvedby @orklah in #15127 - Check PSR-4 for test classes in CI and fix the 21 that fail it by @samsonasik in #14766
Full Changelog: 7.22.0...7.22.1