[Translation] Don't pass null to strtoupper()
Signed-off-by: Alexander M. Turek <me@derrabus.de>
This commit is contained in:
parent
c127120b9e
commit
3c8cf9a3d4
|
@ -76,7 +76,7 @@ class XliffFileLoader implements LoaderInterface
|
|||
private function extractXliff1(\DOMDocument $dom, MessageCatalogue $catalogue, string $domain)
|
||||
{
|
||||
$xml = simplexml_import_dom($dom);
|
||||
$encoding = strtoupper($dom->encoding);
|
||||
$encoding = $dom->encoding ? strtoupper($dom->encoding) : null;
|
||||
|
||||
$namespace = 'urn:oasis:names:tc:xliff:document:1.2';
|
||||
$xml->registerXPathNamespace('xliff', $namespace);
|
||||
|
|
Reference in New Issue