Skip to content

Release v5.1.0

Compare
Choose a tag to compare
@klimick klimick released this 28 Nov 08:27
· 33 commits to master since this release

New functions

  • proveUnion: allows to combine multiple evidences.
  • proveNull: proveUnion($mixed, [proveInt(...), proveNull(...)]) (inferred as Option<int|null>).
  • asEnumOf: allows to cast string|int to enum instance.

Static analysis improvement

  • toMergedArray: More specific type.