DX: apply rector rules up to php8.0

This commit is contained in:
2023-04-15 01:05:37 +02:00
parent d8870e906f
commit dde3002100
714 changed files with 2348 additions and 9263 deletions

View File

@@ -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