Skip to content

Releases: Innmind/validation

1.9.0

09 Feb 17:21
1.9.0
583927d
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.8.0...1.9.0

1.8.0

09 Feb 13:30
1.8.0
cc94c43
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.7.0...1.8.0

1.7.0

11 Nov 12:38
1.7.0
cd7407b
Compare
Choose a tag to compare

What's Changed

  • Remove the need for Constraint::map() callables to be pure by @Baptouuuu in #8

Full Changelog: 1.6.1...1.7.0

1.6.1

11 Nov 10:33
1.6.1
b2be414
Compare
Choose a tag to compare

What's Changed

  • Fix Psalm losing types of contraints when composing them by @Baptouuuu in #7

Full Changelog: 1.6.0...1.6.1

1.6.0

11 Nov 09:17
1.6.0
8a1d02d
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.5.0...1.6.0

1.5.0

10 Nov 14:55
1.5.0
1aa897c
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.4.0...1.5.0

1.4.0

24 Mar 09:51
1.4.0
55cd331
Compare
Choose a tag to compare

Added

  • Is::list()->and(Each::of(Constraint)) has been shortened to Is::list(Constraint)

Changed

  • Is::array()->and(Is::list()) has been shortened to Is::list()
  • Is::array()->and(Shape::of(...$args)) has been shortened to Shape::of(...$args)

1.3.0

05 Mar 13:02
1.3.0
2d34070
Compare
Choose a tag to compare

Added

  • Innmind\Validation\Is::shape() as a shortcut to Is::array()->and(Shape::of())

Fixed

  • OrConstraint::and() was applying an or constraint

1.2.0

05 Mar 09:19
1.2.0
d66b0bd
Compare
Choose a tag to compare

Added

  • You can now do Shape::of(...)->optional('key', $constraint) instead of Shape::of(...)->with('key', $constraint)->optional('key') thus avoiding to repeat the key name

1.1.1

24 Feb 13:11
1.1.1
7932fe6
Compare
Choose a tag to compare

Fixed

  • Innmind\Validation\Each now returns the validated data instead of the original content