Skip to content

Commit

Permalink
Closes #5169
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 5, 2023
1 parent 1bd8f24 commit 7acacb7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions ChangeLog-10.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ All notable changes of the PHPUnit 10.0 release series are documented in this fi

### Fixed

* [#5169](https://github.com/sebastianbergmann/phpunit/issues/5169): Parameter type for constructor of `GreaterThan` and `LessThan` constraints does not match parameter type for `Assert::greaterThan()` and `Assert::lessThan()`
* [#5171](https://github.com/sebastianbergmann/phpunit/issues/5171): `@backupStaticProperties` and `@backupStaticAttributes` trigger an error

## [10.0.3] - 2023-02-04
Expand Down
4 changes: 2 additions & 2 deletions src/Framework/Constraint/Cardinality/GreaterThan.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
*/
final class GreaterThan extends Constraint
{
private readonly float|int $value;
private readonly mixed $value;

public function __construct(float|int $value)
public function __construct(mixed $value)
{
$this->value = $value;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Framework/Constraint/Cardinality/LessThan.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
*/
final class LessThan extends Constraint
{
private readonly float|int $value;
private readonly mixed $value;

public function __construct(float|int $value)
public function __construct(mixed $value)
{
$this->value = $value;
}
Expand Down

0 comments on commit 7acacb7

Please sign in to comment.