Merge branch '4.1'

* 4.1:
  [Config] minor fix that removes a PHP 7.3 deprecation
  [Translation] fix perf of lint:xliff command
This commit is contained in:
Nicolas Grekas 2018-08-08 09:59:30 +02:00
commit e0a8a7f631
2 changed files with 5 additions and 5 deletions

View File

@ -499,7 +499,7 @@ abstract class BaseNode implements NodeInterface
return self::$placeholders[$value];
}
if (0 === strpos($value, self::$placeholderUniquePrefix)) {
if (self::$placeholderUniquePrefix && 0 === strpos($value, self::$placeholderUniquePrefix)) {
return array();
}
}

View File

@ -134,10 +134,10 @@ EOF
foreach (XliffUtils::validateSchema($document) as $xmlError) {
$errors[] = array(
'line' => $xmlError['line'],
'column' => $xmlError['column'],
'message' => $xmlError['message'],
);
'line' => $xmlError['line'],
'column' => $xmlError['column'],
'message' => $xmlError['message'],
);
}
return array('file' => $file, 'valid' => 0 === \count($errors), 'messages' => $errors);