upgrade php-cs 3.49

This commit is contained in:
2024-02-07 10:43:53 +01:00
parent 51ebc253aa
commit 036fe8d6f8
257 changed files with 605 additions and 605 deletions

View File

@@ -66,7 +66,7 @@ class DateRangeCovering
$this->minCover = $minCover;
}
public function add(\DateTimeInterface $start, \DateTimeInterface $end = null, $metadata = null): self
public function add(\DateTimeInterface $start, ?\DateTimeInterface $end = null, $metadata = null): self
{
if ($this->computed) {
throw new \LogicException('You cannot add intervals to a computed instance');
@@ -152,7 +152,7 @@ class DateRangeCovering
return \count($this->intersections) > 0;
}
private function addToSequence($timestamp, int $start = null, int $end = null)
private function addToSequence($timestamp, ?int $start = null, ?int $end = null)
{
if (!\array_key_exists($timestamp, $this->sequence)) {
$this->sequence[$timestamp] = ['s' => [], 'e' => []];