Skip to content

v2.6.0

Choose a tag to compare

@yuriizee yuriizee released this 16 Oct 14:27
· 2 commits to main since this release
v2.6.0
823f8b4

Fixed

  • toArray($context) with ever-new context names no longer compiles a serializer per name: contexts not declared in #[Hidden(except:)] share one, and at most 64 are cached per class (20 000 contexts: +132 MB → +0 MB).
  • fromValidated() on large collections under #[InferRules] validates in linear time: 8 000 items take 0.2 s instead of 1.3 s. Errors are identical to Laravel's wildcard validation.
  • Money::toDecimal() is exact for amounts above 2^53 and about 25% faster.

Added (opt-in)

  • CommaSeparatedCast(maxItems: ...) caps the item count of untrusted input.
  • Support\SensitiveVarDumperCaster::register() redacts #[Sensitive] fields in dump() / dd().

Changed

  • PHPStan (level 5) and mutation testing (Infection, covered MSI ≥ 84%) run in CI.
  • Documentation: deploy order for the metadata cache and how to protect the cache directory.

Fully backward compatible with 2.5.x.