Skip to content

Proposal to Digit validator #11374

@davihu

Description

@davihu

It would be nice, when Digit validator can handle integer as well as string value. I enabled orm.cast_on_hydrate and all Digit validations are now triggering an error because of int types :)

Please change actual behavior to

if (is_int($value) || ctype_digit($value)) {
  return true;
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions