Skip to content

Commit c35f5bc

Browse files
committed
Merge branch '2.3' into 2.6
* 2.3: [Validator] Add missing pt_BR translations Add parsing of hexadecimal strings for PHP 7 [Configuration] improve description for ignoreExtraKeys on ArrayNodeDefinition [Validator] Added missing Hungarian translation [Validator] Fixed grammar in Hungarian translation CS: Unary operators should be placed adjacent to their operands CS: Binary operators should be arounded by at least one space remove useless tests that fail in php 7 [Translator] fix test for php 7 compatibility Update phpdoc of ProcessBuilder#setPrefix() Conflicts: src/Symfony/Component/HttpFoundation/Session/Attribute/NamespacedAttributeBag.php src/Symfony/Component/PropertyAccess/PropertyAccessor.php src/Symfony/Component/Validator/Resources/translations/validators.pt_BR.xlf src/Symfony/Component/Yaml/Parser.php
2 parents 28d9ad5 + 4186b57 commit c35f5bc

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

Definition/Builder/ArrayNodeDefinition.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,10 @@ public function performNoDeepMerging()
279279
* Allows extra config keys to be specified under an array without
280280
* throwing an exception.
281281
*
282-
* Those config values are simply ignored. This should be used only
283-
* in special cases where you want to send an entire configuration
284-
* array through a special tree that processes only part of the array.
282+
* Those config values are simply ignored and removed from the
283+
* resulting array. This should be used only in special cases where
284+
* you want to send an entire configuration array through a special
285+
* tree that processes only part of the array.
285286
*
286287
* @return ArrayNodeDefinition
287288
*/

Definition/PrototypedArrayNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ protected function normalizeValue($value)
231231

232232
$value = $this->remapXml($value);
233233

234-
$isAssoc = array_keys($value) !== range(0, count($value) -1);
234+
$isAssoc = array_keys($value) !== range(0, count($value) - 1);
235235
$normalized = array();
236236
foreach ($value as $k => $v) {
237237
if (null !== $this->keyAttribute && is_array($v)) {

Loader/FileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function import($resource, $type = null, $ignoreErrors = false, $sourceRe
9393
$resources = is_array($resource) ? $resource : array($resource);
9494
for ($i = 0; $i < $resourcesCount = count($resources); $i++) {
9595
if (isset(self::$loading[$resources[$i]])) {
96-
if ($i == $resourcesCount-1) {
96+
if ($i == $resourcesCount - 1) {
9797
throw new FileLoaderImportCircularReferenceException(array_keys(self::$loading));
9898
}
9999
} else {

Util/XmlUtils.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,8 @@ public static function phpize($value)
207207
return bindec($value);
208208
case is_numeric($value):
209209
return '0x' === $value[0].$value[1] ? hexdec($value) : (float) $value;
210+
case preg_match('/^0x[0-9a-f]++$/i', $value):
211+
return hexdec($value);
210212
case preg_match('/^(-|\+)?[0-9]+(\.[0-9]+)?$/', $value):
211213
return (float) $value;
212214
default:

0 commit comments

Comments
 (0)