We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca1d4b4 + e91bb61 commit 6852327Copy full SHA for 6852327
src/Symfony/Component/Yaml/Parser.php
@@ -969,7 +969,7 @@ private function isCurrentLineBlank(): bool
969
private function isCurrentLineComment(): bool
970
{
971
//checking explicitly the first char of the trim is faster than loops or strpos
972
- $ltrimmedLine = ' ' === $this->currentLine[0] ? ltrim($this->currentLine, ' ') : $this->currentLine;
+ $ltrimmedLine = '' !== $this->currentLine && ' ' === $this->currentLine[0] ? ltrim($this->currentLine, ' ') : $this->currentLine;
973
974
return '' !== $ltrimmedLine && '#' === $ltrimmedLine[0];
975
}
0 commit comments