Skip to content

Commit

Permalink
Revert "Add typed properties"
Browse files Browse the repository at this point in the history
This reverts commit e5ed42d.
  • Loading branch information
kodumbeats committed Apr 8, 2021
1 parent d135f9a commit 6a17af8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Validator/Boolean.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Boolean extends Validator
/**
* @var bool
*/
protected bool $loose = false;
protected $loose = false;

/**
* Pass true to accept true and false strings and integers 0 and 1 as valid boolean values
Expand Down
10 changes: 5 additions & 5 deletions src/Validator/Range.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ class Range extends Numeric
/**
* @var int
*/
protected int $min;
protected $min;

/**
* @var int
*/
protected int $max;
protected $max;

/**
* @param int $min
* @param int $max
*/
public function __construct(int $min, int $max)
public function __construct($min, $max)
{
$this->min = $min;
$this->max = $max;
Expand All @@ -45,7 +45,7 @@ public function __construct(int $min, int $max)
* Get Range Minimum Value
* @return int
*/
public function getMin(): int
public function getMin()
{
return $this->min;
}
Expand All @@ -54,7 +54,7 @@ public function getMin(): int
* Get Range Maximum Value
* @return int
*/
public function getMax(): int
public function getMax()
{
return $this->max;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Validator/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Text extends Validator
/**
* @var int
*/
protected int $length = 0;
protected $length = 0;

/**
* Text constructor.
Expand Down
6 changes: 3 additions & 3 deletions src/Validator/WhiteList.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ class WhiteList extends Validator
/**
* @var array
*/
protected array $list;
protected $list;

/**
* @var bool
*/
protected bool $strict;
protected $strict;

/**
* @var string
*/
protected string $type;
protected $type;

/**
* Constructor
Expand Down

0 comments on commit 6a17af8

Please sign in to comment.