Repository navigation
7.14.0
What's Changed
Features
- Full PHP 8.6 support: deprecations, API types and capabilities by @danog in #14413
- UX: List enabled plugins in the startup output by @alies-dev in #14510
Fixes
- Report an invalid psalm-refactor destination instead of crashing by @MohannadElemary in #14097
- fix: preserve array types after array_walk callbacks by @emreocell in #14173
- Keep what both operands of xor assign in an if condition by @shu-chen-dot-ca in #14357
- Resolve static nested in the hint of a typed closure param with the called class by @shu-chen-dot-ca in #14202
- fix(templates): localize the return type of a closure in a used trait by @jirkace in #12810
- fix(mixed): a non-empty mixed is never a falsy value, nor an empty mixed a truthy one by @jirkace in #12672
- fix(stubs): DOMNode::$ownerDocument is nullable by @jirkace in #14309
- fix(args): unpacking an array shape with integer keys that is not a list passes as many arguments as it has keys by @jirkace in #14415
- fix(reconciler): a loose comparison with a string keeps the scalars it can be equal to by @jirkace in #14429
- fix(stubs): DateTimeImmutable::getTimezone() may return false by @jirkace in #14343
- fix(stubs): pathinfo returns the array for PATHINFO_ALL by @jirkace in #14315
- fix(combiner): a class-string key of a merged keyed array stays a class-string by @jirkace in #14403
- fix(property): a static property of static type in a final class takes the class by @jirkace in #14351
- fix(property-map): remove the bogus WriteException entry of the manual property map by @jirkace in #14344
- fix(get_object_vars): resolve the class constants of a property type by @jirkace in #14342
- fix(arithmetic): % with a negative divisor takes the sign of the dividend by @jirkace in #14320
- fix(method-comparator): implemented return type messages name the method as written by @jirkace in #14314
- fix(call): call_user_func and call_user_func_array are matched case-insensitively by @jirkace in #14313
- fix(docblock): an intersection type in an @method parameter by @jirkace in #14338
- fix(context): a variable first assigned in a possibly skipped branch keeps its type by @jirkace in #14376
- fix(deprecated): a promoted property marked @deprecated is reported on use by @jirkace in #14310
- fix(loop): a foreach that is entered holds what an iteration ends with, at a continue too by @jirkace in #14418
- fix(filter_var): bools, empty literals and FILTER_FLAG_EMPTY_STRING_NULL of FILTER_SANITIZE_STRING by @jirkace in #14329
- fix(and): the left operand of && keeps the truthy clause of a nullable int by @jirkace in #14420
- fix(stubs): declare Closure::getCurrent() for PHP 8.5 by @jirkace in #14339
- fix(include): strict_types applies per file, not from the file that includes it by @jirkace in #14402
- Narrow ReflectionReference::fromArrayElement() for by-reference literal elements by @orklah in #14488
- Report GitHub Actions pull requests and other CI services to Shepherd by @alies-dev in #14472
- fix(visibility): a use adaptation changes the visibility a method call is checked with before __call() by @jirkace in #14399
- fix(isset): isset of an offset of a template array narrows the key to key-of by @jirkace in #14438
- fix(php85): writing a property of a constant object is a compile error before PHP 8.6 by @jirkace in #14405
- fix(mixin): an inaccessible property is read from the mixin through __get() by @jirkace in #14375
- fix(taint): a superglobal is still tainted after eval() by @jirkace in #14356
- fix(array-access): a null offset of an ArrayAccess object is checked by offsetGet by @jirkace in #14349
- Don't take matching another pattern for a paradox by @phcorp in #14444
- Report an override that widens or drops the native type of a class constant by @danog in #14485
Docs
- Document Shepherd on its own page by @alies-dev in #14473
Internal changes
- Fix the red filterVarSanitizeStringWithEmptyStringNull test on master by @alies-dev in #14493
- CI: Split BuildInfoCollector into one class per CI service by @alies-dev in #14498
New Contributors
- @emreocell made their first contribution in #14173
- @phcorp made their first contribution in #14444
Full Changelog: 7.13.2...7.14.0