Skip to content

Commit c935b6a

Browse files
Add missing @return annotations to fix deprecations on PHP 8
1 parent 4f6cd03 commit c935b6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/Resources/TranslationFilesTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ public function testTranslationFileIsValidWithoutEntityLoader($filePath)
3636
{
3737
$document = new \DOMDocument();
3838
$document->loadXML(file_get_contents($filePath));
39-
libxml_disable_entity_loader(true);
39+
if (\LIBXML_VERSION < 20900) {
40+
libxml_disable_entity_loader(true);
41+
}
4042

4143
$errors = XliffUtils::validateSchema($document);
4244

0 commit comments

Comments
 (0)