Repository navigation
v2.7.0
Fixed
equals(),diff()and the Eloquent casts compareEncryptedCastfields by their decrypted value. Equal objects no longer differ because eachtoArray()draws a new nonce, and saving an unchanged model no longer rewrites the encrypted column.diff()still reports ciphertexts, never plaintext.#[InferRules]with a required#[Flatten]property rejected valid flat input; the nested rules now apply to the parent's own keys.
Added (opt-in)
FloatCast(finite: true)rejectsINFandNAN(e.g.1e400in JSON) at hydration.
Changed
- PHPStan runs at level 6.
- Documentation: XML entity handling, comparison of encrypted and hidden fields.
Fully backward compatible with 2.6.x.