Skip to content

v0.13.51

Choose a tag to compare

@romalytvynenko romalytvynenko released this 26 Oct 19:58
· 6 commits to main since this release
61ec70d

What's Changed

  • Improve validation rules documentation when evaluation fails by @romalytvynenko in #1309
    • Recover known fields and validation rules through static analysis when application code cannot be evaluated.
    • Support inferred rule objects in NormalizedRule through instanceOf() and typed property getters.
    • Preserve inferred Laravel Enum and In rule configuration, including allowed values and enum filters.
  • Improve type inference:
    • Resolve enum case names, backing values, and case-specific match results.
    • Specialize argument-dependent ternaries and property reads using actual call arguments.
    • Preserve both possible results when a condition is uncertain.
    • Resolve interpolated strings, concatenated strings, and computed array keys.
    • Handle array access across alternative array shapes and keys.
    • Infer known results of logical expressions and track pre/post increment and decrement.
    • Track mutations through fluent method chains and model Eloquent refresh().
  • Preserve nullable parent objects when merging nested validation fields.

Full Changelog: v0.13.50...v0.13.51