Skip to content

Releases: PhpGt/Input

Octover 2024 release

14 Oct 12:28
03777c5
Compare
Choose a tag to compare

What's Changed

April 2024 release

30 Apr 17:52
fea0d65
Compare
Choose a tag to compare

What's Changed

  • Make getFile consistent with other functions by @g105b in #298

Full Changelog: v1.2.3...v1.2.4

CI and QA improvements

02 May 17:16
7e82009
Compare
Choose a tag to compare

What's Changed

  • Upgrade CI matrix build and add QA tests by @g105b in #292

Full Changelog: v1.2.2...v1.2.3

PSR-7 v2 compatibility

02 May 16:39
7dbc7a0
Compare
Choose a tag to compare

PSR-7 has a v2 release which introduces a proper type system. This is now integrated in the areas that touch File Uploads and Body Streams.

What's Changed

Full Changelog: v1.2.1...v1.2.2

Maintenance release: September 2022

27 Sep 10:37
fbcd560
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.2.0...v1.2.1

Type safe getters for "mutliple" inputs

28 Mar 11:49
95136bc
Compare
Choose a tag to compare

In this minor release, new type-safe getters have been introduced for working with "multiple" inputs (the type of input with a square bracket in the "name" attribute").

Along with the scalar types int, bool, float, and string, DateTime and FileUpload are supported.

Full Changelog: v1.1.3...v1.2.0

PHP 8.1 improvements

26 Feb 15:45
d2d2701
Compare
Choose a tag to compare
  • Upgrade internal dependencies
  • Upgrade CI
  • Set correct test class namespaces by @peter279k in #139
  • Update documentation to show use of InputData by @g105b in #140
  • Using assertSame to improve assertEquals by @peter279k in #142
  • fix: deprecation notices by @g105b in #189
  • Type improvements by @g105b in #190

New Contributors

Full Changelog: v1.1.2...v1.1.3

Loosen dependencies

29 Nov 11:24
ae78931
Compare
Choose a tag to compare

For consistency, all PHP.Gt repositories are adopting a "* by default" dependency policy for internal dependencies. This will make future merges simpler.

Dependency bump

28 Nov 11:59
bc70b65
Compare
Choose a tag to compare

A number of internal PhpGt releases are made this week. This patch release synchronises all repositories.

Changes to nullable type returning

26 Nov 22:34
d85b65d
Compare
Choose a tag to compare

For all get* functions on InputDataGetter classes, there is now a slightly modified behavior. Apart from with getString, if the input data contains an empty string, it is represented by null, rather than the default for that type.

This means that if there is a number input on the page, and the user does not enter any data into it, calling getInt() on that field will now return null instead of 0 - properly representing an absence of data, without making any assumptions.

This is a minor release, due to minor backwards breaking changes.