Skip to content

Commit d54c2a8

Browse files
committed
Add missing dots at the end of exception messages
1 parent 37d6a73 commit d54c2a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Parser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ private function doParse($value, $flags)
207207
$isRef = $mergeNode = false;
208208
if (self::preg_match('#^\-((?P<leadspaces>\s+)(?P<value>.+))?$#u', rtrim($this->currentLine), $values)) {
209209
if ($context && 'mapping' == $context) {
210-
throw new ParseException('You cannot define a sequence item when in a mapping', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filename);
210+
throw new ParseException('You cannot define a sequence item when in a mapping.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filename);
211211
}
212212
$context = 'sequence';
213213

@@ -253,7 +253,7 @@ private function doParse($value, $flags)
253253
&& (false === strpos($values['key'], ' #') || \in_array($values['key'][0], ['"', "'"]))
254254
) {
255255
if ($context && 'sequence' == $context) {
256-
throw new ParseException('You cannot define a mapping item when in a sequence', $this->currentLineNb + 1, $this->currentLine, $this->filename);
256+
throw new ParseException('You cannot define a mapping item when in a sequence.', $this->currentLineNb + 1, $this->currentLine, $this->filename);
257257
}
258258
$context = 'mapping';
259259

0 commit comments

Comments
 (0)