Skip to content

Released version 1.3.7

Choose a tag to compare

@dg dg released this 20 Oct 15:48
· 47 commits to master since this release

A maintenance release: PHP 8.6 support, a nicer way to write defaults, and a few edge cases that now fail with a clear message instead of a confusing one.

✨ New Features

  • PHP 8.6 is supported
  • Defaults can be passed as a named argument: Expect::string(default: 'abc')

🛡️ Robustness

  • Mistakes in a schema now report a clear error: an invalid regex pattern, a variadic constructor in Expect::from(), or a key transformed into something that cannot be a key
  • Expect::from() ignores non-public and static properties
  • Calling process() recursively on the same Processor instance works correctly