@@ -249,7 +249,7 @@ public static function parseScalar($scalar, $delimiters = null, $stringDelimiter
249
249
$ output = $ match [1 ];
250
250
$ i += strlen ($ output );
251
251
} else {
252
- throw new ParseException (sprintf ('Malformed inline YAML string (%s) . ' , $ scalar ));
252
+ throw new ParseException (sprintf ('Malformed inline YAML string: %s . ' , $ scalar ));
253
253
}
254
254
255
255
if ($ evaluate ) {
@@ -273,7 +273,7 @@ public static function parseScalar($scalar, $delimiters = null, $stringDelimiter
273
273
private static function parseQuotedScalar ($ scalar , &$ i )
274
274
{
275
275
if (!preg_match ('/ ' .self ::REGEX_QUOTED_STRING .'/Au ' , substr ($ scalar , $ i ), $ match )) {
276
- throw new ParseException (sprintf ('Malformed inline YAML string (%s) . ' , substr ($ scalar , $ i )));
276
+ throw new ParseException (sprintf ('Malformed inline YAML string: %s . ' , substr ($ scalar , $ i )));
277
277
}
278
278
279
279
$ output = substr ($ match [0 ], 1 , strlen ($ match [0 ]) - 2 );
@@ -346,7 +346,7 @@ private static function parseSequence($sequence, &$i = 0, $references = array())
346
346
++$ i ;
347
347
}
348
348
349
- throw new ParseException (sprintf ('Malformed inline YAML string %s ' , $ sequence ));
349
+ throw new ParseException (sprintf ('Malformed inline YAML string: %s. ' , $ sequence ));
350
350
}
351
351
352
352
/**
@@ -434,7 +434,7 @@ private static function parseMapping($mapping, &$i = 0, $references = array())
434
434
}
435
435
}
436
436
437
- throw new ParseException (sprintf ('Malformed inline YAML string %s ' , $ mapping ));
437
+ throw new ParseException (sprintf ('Malformed inline YAML string: %s. ' , $ mapping ));
438
438
}
439
439
440
440
/**
0 commit comments