Skip to content

Conditional rules don't explode #186

@bytestream

Description

@bytestream

Conditional rules don't explode correctly on this line: https://github.com/proengsoft/laravel-jsvalidation/blob/master/src/Javascript/RuleParser.php#L96

Wrapping $rules in an array [ $rules ] results in a multi-dimensional array, and subsequently explodeRules() doesn't handle it correctly.

Replacing with (array) $rules seems to fix the problem. Thoughts?

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