Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce NumberComparison validator #274

Merged
merged 6 commits into from
Jun 25, 2024

Conversation

gsteel
Copy link
Member

@gsteel gsteel commented Jun 20, 2024

Q A
Documentation yes
New Feature yes

Description

Adds a single validator that only validates numeric input with optional lower and upper bounds.

This validator should replace LessThan, GreaterThan and Between

Further discussion on the reason for this validator in #272

Adds a single validator that only validates numeric input with optional lower and upper bounds.

This validator should replace `LessThan`, `GreaterThan` and `Between`

Signed-off-by: George Steel <george@net-glue.co.uk>
… can be set independently

Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
Signed-off-by: George Steel <george@net-glue.co.uk>
Copy link
Member

@froschdesign froschdesign left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only minor formatting changes and a heading.

docs/book/v2/validators/number-comparison.md Outdated Show resolved Hide resolved
docs/book/v2/validators/number-comparison.md Outdated Show resolved Hide resolved
docs/book/v2/validators/number-comparison.md Outdated Show resolved Hide resolved
docs/book/v2/validators/number-comparison.md Outdated Show resolved Hide resolved
docs/book/v2/validators/number-comparison.md Outdated Show resolved Hide resolved
Co-authored-by: Frank Brückner <info@froschdesignstudio.de>
Signed-off-by: George Steel <george@netglue.uk>
Copy link
Member

@froschdesign froschdesign left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻

Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 thanks @gsteel!

@Ocramius Ocramius self-assigned this Jun 25, 2024
@Ocramius Ocramius merged commit 66ab091 into laminas:2.60.x Jun 25, 2024
14 of 15 checks passed
@gsteel gsteel deleted the v2/number-comparison branch June 25, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants