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

Add null as a possible type parameter to strval #4100

Merged
merged 1 commit into from
Sep 1, 2020

Commits on Sep 1, 2020

  1. Add null as a possible type parameter to strval

    https://www.php.net/manual/en/language.types.string.php#language.types.string.casting mentions
    
    > `NULL` is always converted to an empty string.
    
    Which seems to indicate that it is a valid argument for it.
    
    As opposed to stringifying other types (like arrays), `strval(null)` does not cause a warning in PHP.
    lhchavez committed Sep 1, 2020
    Configuration menu
    Copy the full SHA
    23350bd View commit details
    Browse the repository at this point in the history