Skip to content

Validator is broken #1464

Closed
Closed
@KaneCohen

Description

@KaneCohen

Validating input with numeric rule (and couple others) may lead to errors if input attribute is accessed via "dot notation".

Example: 'user.age' => 'numeric' will throw an error. Problem is there because getSize method uses $this->data($attribute) instead of $this->getValue($attribute). Same error will be thrown in similar cases with validateSame and validateDifferent.

It's been fixed in #833 and #1340 PRs, but so far it's not in current release version.

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