mirror of
https://github.com/Respect/Validation.git
synced 2024-06-01 05:12:50 +02:00
Increate PHPStan level to 7
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
This commit is contained in:
parent
4519739f8b
commit
985b6fac25
|
@ -31,7 +31,7 @@ use function is_string;
|
|||
final class Email extends AbstractRule
|
||||
{
|
||||
/**
|
||||
* @var EmailValidator
|
||||
* @var EmailValidator|null
|
||||
*/
|
||||
private $validator;
|
||||
|
||||
|
|
|
@ -37,12 +37,12 @@ use function mb_strlen;
|
|||
final class Length extends AbstractRule
|
||||
{
|
||||
/**
|
||||
* @var int
|
||||
* @var int|null
|
||||
*/
|
||||
private $minValue;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
* @var int|null
|
||||
*/
|
||||
private $maxValue;
|
||||
|
||||
|
@ -60,7 +60,7 @@ final class Length extends AbstractRule
|
|||
*
|
||||
* @throws ComponentException
|
||||
*/
|
||||
public function __construct(int $min = null, int $max = null, $inclusive = true)
|
||||
public function __construct(int $min = null, int $max = null, bool $inclusive = true)
|
||||
{
|
||||
$this->minValue = $min;
|
||||
$this->maxValue = $max;
|
||||
|
|
|
@ -29,7 +29,7 @@ class Size extends AbstractRule
|
|||
public $minSize;
|
||||
|
||||
/**
|
||||
* @var float
|
||||
* @var float|null
|
||||
*/
|
||||
public $minValue;
|
||||
|
||||
|
@ -39,7 +39,7 @@ class Size extends AbstractRule
|
|||
public $maxSize;
|
||||
|
||||
/**
|
||||
* @var float
|
||||
* @var float|null
|
||||
*/
|
||||
public $maxValue;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ parameters:
|
|||
ignoreErrors:
|
||||
- '/Call to an undefined static method Respect\\Validation\\Validator::iDoNotExistSoIShouldThrowException/'
|
||||
- '/Parameter #2 $locale of function setlocale expects array|string|null, int given./'
|
||||
level: 6
|
||||
level: 7
|
||||
paths:
|
||||
- library/
|
||||
- tests/
|
||||
|
|
Loading…
Reference in a new issue