Releases: PhpGt/Input
Octover 2024 release
April 2024 release
What's Changed
Full Changelog: v1.2.3...v1.2.4
CI and QA improvements
What's Changed
Full Changelog: v1.2.2...v1.2.3
PSR-7 v2 compatibility
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
What's Changed
- build: hard dependencies by @g105b in #235
- Bump phpstan/phpstan from 1.8.0 to 1.8.1 by @dependabot in #236
- maintenance: dependabot by @g105b in #247
- ci: upgrade workflow by @g105b in #249
- Bump phpgt/http from 1.1.2 to 1.1.6 by @dependabot in #248
Full Changelog: v1.2.0...v1.2.1
Type safe getters for "mutliple" inputs
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
- 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
- @peter279k made their first contribution in #139
- @dependabot made their first contribution in #149
Full Changelog: v1.1.2...v1.1.3
Loosen dependencies
For consistency, all PHP.Gt repositories are adopting a "*
by default" dependency policy for internal dependencies. This will make future merges simpler.
Dependency bump
A number of internal PhpGt releases are made this week. This patch release synchronises all repositories.
Changes to nullable type returning
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.