mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-19 12:24:28 +00:00
Rector standards slowly being applied. PHP Version first.
This commit is contained in:
@ -11,7 +11,7 @@ use Exception;
|
||||
|
||||
class Range
|
||||
{
|
||||
final public function __construct(private int $min, private int $max)
|
||||
final public function __construct(private readonly int $min, private readonly int $max)
|
||||
{
|
||||
if ($min > $max) {
|
||||
throw new Exception('min > max');
|
||||
|
Reference in New Issue
Block a user