Skip to content

Add "on" and "off" in boolean validation. #167

@dalsochio

Description

@dalsochio

return \in_array($value, [\true, \false, "true", "false", 1, 0, "0", "1", "y", "n"], \true);

Some HTML inputs return "on" and "off" for true or false.

Would it be possible to add these two to the boolean types?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions