Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e0a8a7f

Browse files
Merge branch '4.1'
* 4.1: [Config] minor fix that removes a PHP 7.3 deprecation [Translation] fix perf of lint:xliff command
2 parents bf57045 + 9fae8f4 commit e0a8a7f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Symfony/Component/Config/Definition/BaseNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ private static function resolvePlaceholderValue($value)
499499
return self::$placeholders[$value];
500500
}
501501

502-
if (0 === strpos($value, self::$placeholderUniquePrefix)) {
502+
if (self::$placeholderUniquePrefix && 0 === strpos($value, self::$placeholderUniquePrefix)) {
503503
return array();
504504
}
505505
}

src/Symfony/Component/Translation/Command/XliffLintCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ private function validate($content, $file = null)
134134

135135
foreach (XliffUtils::validateSchema($document) as $xmlError) {
136136
$errors[] = array(
137-
'line' => $xmlError['line'],
138-
'column' => $xmlError['column'],
139-
'message' => $xmlError['message'],
140-
);
137+
'line' => $xmlError['line'],
138+
'column' => $xmlError['column'],
139+
'message' => $xmlError['message'],
140+
);
141141
}
142142

143143
return array('file' => $file, 'valid' => 0 === \count($errors), 'messages' => $errors);

0 commit comments

Comments
 (0)