Apply contribution guidelines to "ArrayVal" rule

Signed-off-by: Emmerson Siqueira <emmersonsiqueira@gmail.com>
This commit is contained in:
Emmerson Siqueira 2018-03-16 12:09:52 +01:00
commit 2bcc164b35
No known key found for this signature in database
GPG key ID: C6404BA651DA5B69
9 changed files with 65 additions and 80 deletions

View file

@ -13,14 +13,21 @@ declare(strict_types=1);
namespace Respect\Validation\Exceptions;
class ArrayValException extends ValidationException
/**
* @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
* @author Henrique Moody <henriquemoody@gmail.com>
*/
final class ArrayValException extends ValidationException
{
/**
* {@inheritdoc}
*/
public static $defaultTemplates = [
self::MODE_DEFAULT => [
self::STANDARD => '{{name}} must be an array',
self::STANDARD => '{{name}} must be an array value',
],
self::MODE_NEGATIVE => [
self::STANDARD => '{{name}} must not be an array',
self::STANDARD => '{{name}} must not be an array value',
],
];
}