It seems like you are loosely comparing $level of type null|string against null; this is ambiguous if the string can be empty. Consider using a strict comparison === instead.
Loading history...
46
5
return $this->entries;
47
}
48
49
4
throw new Exception('Level '.$level.' not set.');
50
}
51
52
32
public function hasEntries(?string $level = null): bool