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

Improve casting of integer routing parameters #16643

Merged
merged 2 commits into from Jul 25, 2022
Merged

Improve casting of integer routing parameters #16643

merged 2 commits into from Jul 25, 2022

Commits on Jul 21, 2022

  1. Improve casting of integer routing parameters

    Allow negative numbers to be cast to integers for typed routing
    parameters.
    markstory committed Jul 21, 2022
    Copy the full SHA
    50efa36 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2022

  1. Remove support for integers with leading 0s

    The additional ctype_digit logic is more complex than using filter_var()
    and I don't think there are many useful scenarios for leading 0s as they
    could be ambiguous with octal representations.
    
    See discussion in #16643
    markstory committed Jul 25, 2022
    Copy the full SHA
    6615ea8 View commit details
    Browse the repository at this point in the history