mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-06 23:04:58 +00:00
upgrade php-cs 3.49
This commit is contained in:
@@ -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' => []];
|
||||
|
Reference in New Issue
Block a user