Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[Yaml] fixed #6770

  • Loading branch information...
commit 60aac139b237d563059f3ffad92b858babe8a67d 1 parent 67069f6
@ezzatron ezzatron authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 Inline.php
View
5 Inline.php
@@ -393,6 +393,11 @@ private static function evaluateScalar($scalar)
$cast = intval($scalar);
return '0' == $scalar[0] ? octdec($scalar) : (((string) $raw == (string) $cast) ? $cast : $raw);
+ case '-' === $scalar[0] && ctype_digit(substr($scalar, 1)):
+ $raw = $scalar;
+ $cast = intval($scalar);
+
+ return '0' == $scalar[1] ? octdec($scalar) : (((string) $raw == (string) $cast) ? $cast : $raw);
case 'true' === strtolower($scalar):
return true;
case 'false' === strtolower($scalar):
Please sign in to comment.
Something went wrong with that request. Please try again.