respect-validation/docs/rules/ArrayType.md
Henrique Moody 10df3211f5
Add "Categorization" section to rule documentations
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-11 19:16:21 +02:00

741 B

ArrayType

  • ArrayType()

Validates whether the type of an input is array.

v::arrayType()->validate([]); // true
v::arrayType()->validate([1, 2, 3]); // true
v::arrayType()->validate(new ArrayObject()); // false

Categorization

  • Arrays
  • Types

Changelog

Version Description
1.0.0 Created

See also: