Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Validator] UpdateType constraint, addnumber,finite-float andfinite-number validations#18527

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
OskarStark merged 1 commit intosymfony:6.4fromguillaume-a:50782
Jul 31, 2023

Conversation

guillaume-a
Copy link
Contributor

@guillaume-aguillaume-a commentedJul 6, 2023
edited by OskarStark
Loading

@guillaume-a
Copy link
ContributorAuthor

This PR should fix CI / Build :#18529

@OskarStarkOskarStark added the Waiting Code MergeDocs for features pending to be merged labelJul 6, 2023
@carsonbotcarsonbot modified the milestones:6.4,nextJul 6, 2023
@OskarStark
Copy link
Contributor

IsFinite != Finite

guillaume-a reacted with thumbs up emoji

@guillaume-aguillaume-a changed the title[Validator] Add Finite constraint[Validator] Add IsFinite constraintJul 13, 2023
@guillaume-a
Copy link
ContributorAuthor

@OskarStark you're right, I renamed the ValidatorIsFinite

IsFinite
========

Validates that a value is a legal finite number.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Validates that a value is alegal finite number.
Validates that a value is avalid finite number.

fabpot added a commit to symfony/symfony that referenced this pull requestJul 30, 2023
…inite-float` and `finite-number` validations (guillaume-a)This PR was merged into the 6.4 branch.Discussion----------[Validator] Update `Type` constraint, add `number`, `finite-float` and `finite-number` validations| Q             | A| ------------- | ---| Branch?       | 6.4| Bug fix?      | no| New feature?  | yes| Deprecations? | no| Tickets       |Fix#50782| License       | MIT| Doc PR        |symfony/symfony-docs#18527Contraint `Type(['float'])` can produce positives with INF or NAN.This new types car narrow validation and limit validation to finite numbers.```#[Assert\Type(['int', 'finite-float'])]private $value;```Thank you for helping me with this one.Commits-------c3b5709 [Validator] Update `Type` constraint, add `number`, `finite-float` and `finite-number` validations
symfony-splitter pushed a commit to symfony/validator that referenced this pull requestJul 30, 2023
…inite-float` and `finite-number` validations (guillaume-a)This PR was merged into the 6.4 branch.Discussion----------[Validator] Update `Type` constraint, add `number`, `finite-float` and `finite-number` validations| Q             | A| ------------- | ---| Branch?       | 6.4| Bug fix?      | no| New feature?  | yes| Deprecations? | no| Tickets       | Fix #50782| License       | MIT| Doc PR        |symfony/symfony-docs#18527Contraint `Type(['float'])` can produce positives with INF or NAN.This new types car narrow validation and limit validation to finite numbers.```#[Assert\Type(['int', 'finite-float'])]private $value;```Thank you for helping me with this one.Commits-------c3b5709560 [Validator] Update `Type` constraint, add `number`, `finite-float` and `finite-number` validations
@guillaume-aguillaume-a changed the title[Validator] Add IsFinite constraint[Validator] UpdateType constraint, addnumber,finite-float andfinite-number validationsJul 31, 2023
@guillaume-a
Copy link
ContributorAuthor

guillaume-a commentedJul 31, 2023
edited
Loading

I've re write the doc according to all changes done in the initial ticket.
No moreIsFinite constraint, just some new entries inType constraint.

@OskarStarkOskarStark removed the Waiting Code MergeDocs for features pending to be merged labelJul 31, 2023
Copy link
Contributor

@OskarStarkOskarStark left a comment

Choose a reason for hiding this comment

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

After my comment

@OskarStark
Copy link
Contributor

Thank you Guillaume.

@OskarStarkOskarStark merged commit03d356b intosymfony:6.4Jul 31, 2023
@guillaume-aguillaume-a deleted the 50782 branchJuly 31, 2023 11:40
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fabpotfabpotfabpot requested changes

@OskarStarkOskarStarkOskarStark approved these changes

@xabbuhxabbuhAwaiting requested review from xabbuhxabbuh is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
next
Development

Successfully merging this pull request may close these issues.

4 participants
@guillaume-a@OskarStark@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp