Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / yaml / Exception / ParseException.php
index ef36cfbadd35cbea83395282ac75d8139d241cf3..3b38b643964acd0d90dcbf2ed63a284fedfa04ba 100644 (file)
@@ -123,12 +123,7 @@ class ParseException extends RuntimeException
         }
 
         if (null !== $this->parsedFile) {
-            if (\PHP_VERSION_ID >= 50400) {
-                $jsonOptions = JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE;
-            } else {
-                $jsonOptions = 0;
-            }
-            $this->message .= sprintf(' in %s', json_encode($this->parsedFile, $jsonOptions));
+            $this->message .= sprintf(' in %s', json_encode($this->parsedFile, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE));
         }
 
         if ($this->parsedLine >= 0) {