From a4c5e0554739d45f152662edb33284d103e5412f Mon Sep 17 00:00:00 2001 From: Thomas Flori <thflori@gmail.com> Date: Sun, 4 Mar 2018 10:31:39 +0100 Subject: [PATCH] added annotations for new filters and validators --- src/Filter.php | 1 + src/Validator.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/Filter.php b/src/Filter.php index 50e1fb9..6e1b5b7 100644 --- a/src/Filter.php +++ b/src/Filter.php @@ -12,6 +12,7 @@ use Verja\Exception\FilterNotFound; * * @method static Filter\Boolean boolean(array $stringTrue = [], array $stringFalse = [], $overwrite = false) * @method static Filter\Callback callback($filter) + * @method static Filter\Escape escape(bool $doubleEncode, bool $specialChars) * @method static Filter\Integer integer() * @method static Filter\Numeric numeric(string $decimalPoint = '.') * @method static Filter\Replace replace($search, $replace) diff --git a/src/Validator.php b/src/Validator.php index 88de0fc..1af0426 100644 --- a/src/Validator.php +++ b/src/Validator.php @@ -17,8 +17,10 @@ use Verja\Validator\Not; * @method static Validator\Contains contains(string $subString) * @method static Validator\EmailAddress emailAddress() * @method static Validator\Equals equals(string $opposite, bool $jsonEncode = true) + * @method static Validator\InArray inArray(mixed $array) * @method static Validator\Integer integer() * @method static Validator\IpAddress ipAddress(string $version = 'any', string $range = 'any') + * @method static Validator\IsArray isArray(string $type) * @method static Validator\Not not($validator) * @method static Validator\NotEmpty notEmpty() * @method static Validator\Numeric numeric(string $decimalPoint = '.') -- GitLab