diff --git a/src/Framework/Constraint/GreaterThan.php b/src/Framework/Constraint/GreaterThan.php index da8277ab546..86dadaaf750 100644 --- a/src/Framework/Constraint/GreaterThan.php +++ b/src/Framework/Constraint/GreaterThan.php @@ -9,8 +9,6 @@ */ namespace PHPUnit\Framework\Constraint; -use numeric; - /** * Constraint that asserts that the value it is evaluated for is greater * than a given value. @@ -18,16 +16,17 @@ class GreaterThan extends Constraint { /** - * @var numeric + * @var int|float */ protected $value; /** - * @param numeric $value + * @param int|float $value */ public function __construct($value) { parent::__construct(); + $this->value = $value; } diff --git a/src/Framework/Constraint/LessThan.php b/src/Framework/Constraint/LessThan.php index 928b1418471..94d65589d33 100644 --- a/src/Framework/Constraint/LessThan.php +++ b/src/Framework/Constraint/LessThan.php @@ -9,8 +9,6 @@ */ namespace PHPUnit\Framework\Constraint; -use numeric; - /** * Constraint that asserts that the value it is evaluated for is less than * a given value. @@ -18,16 +16,17 @@ class LessThan extends Constraint { /** - * @var numeric + * @var int|float */ protected $value; /** - * @param numeric $value + * @param int|float $value */ public function __construct($value) { parent::__construct(); + $this->value = $value; }