Skip to content

Releases: Firehed/input

2.3.1 - PHP 8.1 support

08 Oct 21:52
31c7e8e
Compare
Choose a tag to compare

Adds support for using the library in PHP 8.1 by fixing some return type incompatibilities around ArrayAccess.

2.3.0

10 Sep 23:04
Compare
Choose a tag to compare

Preparation for PHPUnit 10

This release makes some adjustments to the exported test helper ValidationTestTrait based on upcoming changes to PHPUnit:

  • Removed @covers ::getRequiredInputs annotation from testGetRequiredInputs
  • Removed @covers ::getOptionalInputs annotation from testGetOptionalInputs

This also adds some additional export-ignore entries for files that should not be distributed.

While these changes should not impact any code at runtime, there could be regressions in code coverage reports as a result.
Typically these can be fixed by adding @covers Fully\Qualified\Class to the test case's annotations.

2.2.0

19 Jul 23:11
28f7999
Compare
Choose a tag to compare

[2.2.0] - 2021-07-19

Summary

This release focuses on supporting newer versions of PHP and minimizing external dependencies.

This will probably be the last version in the 2.x line.
The next major version will only support PHP 8, and should further improve type information that's available in modern tooling.

Added

  • Test suite: PHP 7.4, 8.0
  • Type information has been added in numerous places.

Changed (Internal)

  • Migrated from Travis to Github Actions
  • Migrated from Coveralls to Codecov
  • Tests are no longer exported. Test traits for client code have been moved to src so they will still be available in releases.
  • Code style updated to PSR-12

Removed

  • Test suite: PHP 7.1

2.1.5

04 Feb 23:21
0e40256
Compare
Choose a tag to compare

Fixes additional PHPUnit 8 deprecation warnings

2.1.4

04 Feb 22:35
d1552f2
Compare
Choose a tag to compare

[2.1.4] - 2019-02-04

Summary

  • Changes some tests to improve compatibility with PHPUnit 8

2.1.3

16 Jan 23:09
348140b
Compare
Choose a tag to compare

This release fixes some incorrect PHPDoc annotations that were revealed by PHPStan.

2.1.2

20 Sep 17:39
06656dc
Compare
Choose a tag to compare

This release has one bugfix: when an optional value had null as a valid value and the data being validated specified null, the validator would incorrectly return the default value. This behavior has been corrected and null will now be correctly returned.

2.1.1

16 May 04:58
1781c1a
Compare
Choose a tag to compare

Fixes non-semantic minimum PHP version requirement bump that was added in 2.1.0

2.1.0

18 Mar 22:09
20bfeec
Compare
Choose a tag to compare

Two new features have been added since 2.0.0:

  • Support for default values in optional parameters
  • Access to more details when validation errors occur

Minor improvements to the readme and test coverage are also included.