Skip to content

[Validator] feat: add warning for number constraints with PHP 7.x #19765

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

Conversation

alexislefebvre
Copy link
Contributor

@alexislefebvre alexislefebvre commented Apr 8, 2024

Fixes symfony/symfony#45710

See:

Symfony 6.x requires PHP 8.x and it fixes this inconsistency, see symfony/symfony#45710 (comment)

So this patch should be removed when merging 5.4 in 6.0 (or 6.4).

@alexislefebvre alexislefebvre requested a review from xabbuh as a code owner April 8, 2024 13:15
@carsonbot carsonbot added this to the 5.4 milestone Apr 8, 2024
@alexislefebvre alexislefebvre force-pushed the feat-add-warning-for-number-constraints-with-PHP-7.x branch from d4cce57 to da967e3 Compare April 8, 2024 13:18
@alexislefebvre alexislefebvre force-pushed the feat-add-warning-for-number-constraints-with-PHP-7.x branch from da967e3 to 7341079 Compare April 8, 2024 13:20
@carsonbot carsonbot changed the title feat: add warning for number constraints with PHP 7.x [Validator] feat: add warning for number constraints with PHP 7.x Apr 9, 2024
@javiereguiluz
Copy link
Member

Thank you Alexis.

@javiereguiluz javiereguiluz merged commit 0b170c8 into symfony:5.4 Apr 9, 2024
@alexislefebvre alexislefebvre deleted the feat-add-warning-for-number-constraints-with-PHP-7.x branch April 9, 2024 11:09
OskarStark added a commit that referenced this pull request Apr 17, 2024
…ebvre)

This PR was merged into the 5.4 branch.

Discussion
----------

fix warning for number constraints with PHP 7.x

Fixes display issue on https://symfony.com/doc/5.x/reference/constraints/Positive.html

> ![image](https://github.com/symfony/symfony-docs/assets/2071331/1f38acb6-950f-4837-9ae5-0f9074d49b8f)

`integer` is not displayed as code.

- Follow-up of #19765

Commits
-------

02e88f1 Update _php7-string-and-number.rst.inc
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.

4 participants