Increate PHPStan level to 7

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
This commit is contained in:
Henrique Moody 2019-02-04 01:12:08 +01:00
parent 4519739f8b
commit 985b6fac25
No known key found for this signature in database
GPG key ID: 221E9281655813A6
4 changed files with 7 additions and 7 deletions

View file

@ -31,7 +31,7 @@ use function is_string;
final class Email extends AbstractRule
{
/**
* @var EmailValidator
* @var EmailValidator|null
*/
private $validator;

View file

@ -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;

View file

@ -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;

View file

@ -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/