Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: symfony/yaml
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.2.3
Choose a base ref
...
head repository: symfony/yaml
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.2.4
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Feb 23, 2019

  1. Copy the full SHA
    57f1ce8 View commit details
  2. Merge branch '3.4' into 4.2

    * 3.4: (24 commits)
      Apply php-cs-fixer rule for array_key_exists()
      [Security] Change FormAuthenticator if condition
      handles multi-byte characters in autocomplete
      speed up tests running them without debug flag
      [Translations] added missing Croatian validators
      Fix getItems() performance issue with RedisCluster (php-redis)
      [VarDumper] Keep a ref to objects to ensure their handle cannot be reused while cloning
      IntegerType: reject submitted non-integer numbers
      be keen to newcomers
      [HttpKernel] Fix possible infinite loop of exceptions
      fixed CS
      [Validator] Added missing translations for Afrikaans
      do not validate non-submitted form fields in PATCH requests
      Update usage example in ArrayInput doc block.
      [Console] Prevent ArgvInput::getFirstArgument() from returning an option value
      [Validator] Fixed duplicate UUID
      fixed CS
      [EventDispatcher] Fix unknown priority
      Avoid mutating the Finder when building the iterator
      [Validator] Add the missing translations for the Greek (el) locale
      ...
    nicolas-grekas committed Feb 23, 2019
    Copy the full SHA
    761fa56 View commit details
Showing with 3 additions and 3 deletions.
  1. +1 −1 Inline.php
  2. +2 −2 Parser.php
2 changes: 1 addition & 1 deletion Inline.php
Original file line number Diff line number Diff line change
@@ -555,7 +555,7 @@ private static function evaluateScalar(string $scalar, int $flags, array $refere
throw new ParseException('A reference must contain at least one character.', self::$parsedLineNumber + 1, $value, self::$parsedFilename);
}

if (!array_key_exists($value, $references)) {
if (!\array_key_exists($value, $references)) {
throw new ParseException(sprintf('Reference "%s" does not exist.', $value), self::$parsedLineNumber + 1, $value, self::$parsedFilename);
}

4 changes: 2 additions & 2 deletions Parser.php
Original file line number Diff line number Diff line change
@@ -237,7 +237,7 @@ private function doParse(string $value, int $flags)
$allowOverwrite = true;
if (isset($values['value'][0]) && '*' === $values['value'][0]) {
$refName = substr(rtrim($values['value']), 1);
if (!array_key_exists($refName, $this->refs)) {
if (!\array_key_exists($refName, $this->refs)) {
if (false !== $pos = array_search($refName, $this->refsBeingParsed, true)) {
throw new ParseException(sprintf('Circular reference [%s, %s] detected for reference "%s".', implode(', ', \array_slice($this->refsBeingParsed, $pos)), $refName, $refName), $this->currentLineNb + 1, $this->currentLine, $this->filename);
}
@@ -648,7 +648,7 @@ private function parseValue(string $value, int $flags, string $context)
$value = substr($value, 1);
}

if (!array_key_exists($value, $this->refs)) {
if (!\array_key_exists($value, $this->refs)) {
if (false !== $pos = array_search($value, $this->refsBeingParsed, true)) {
throw new ParseException(sprintf('Circular reference [%s, %s] detected for reference "%s".', implode(', ', \array_slice($this->refsBeingParsed, $pos)), $value, $value), $this->currentLineNb + 1, $this->currentLine, $this->filename);
}