Skip to content

Commit 438a69f

Browse files
Use ??= more
1 parent b5fbe4f commit 438a69f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Parser.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,7 @@ private function doParse(string $value, int $flags)
107107
$this->lines = explode("\n", $value);
108108
$this->numberOfParsedLines = \count($this->lines);
109109
$this->locallySkippedLineNumbers = [];
110-
111-
if (null === $this->totalNumberOfLines) {
112-
$this->totalNumberOfLines = $this->numberOfParsedLines;
113-
}
110+
$this->totalNumberOfLines ??= $this->numberOfParsedLines;
114111

115112
if (!$this->moveToNextLine()) {
116113
return null;

0 commit comments

Comments
 (0)