mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-06 23:04:58 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -69,21 +69,18 @@ class DateRangeCovering
|
||||
|
||||
private array $sequence = [];
|
||||
|
||||
private DateTimeZone $tz;
|
||||
|
||||
private int $uniqueKeyCounter = 0;
|
||||
|
||||
/**
|
||||
* @param int $minCover the minimum of covering required
|
||||
*/
|
||||
public function __construct(int $minCover, DateTimeZone $tz)
|
||||
public function __construct(int $minCover, private DateTimeZone $tz)
|
||||
{
|
||||
if (0 > $minCover) {
|
||||
throw new LogicException('argument minCover cannot be lower than 0');
|
||||
}
|
||||
|
||||
$this->minCover = $minCover;
|
||||
$this->tz = $tz;
|
||||
}
|
||||
|
||||
public function add(DateTimeInterface $start, ?DateTimeInterface $end = null, $metadata = null): self
|
||||
|
Reference in New Issue
Block a user