Skip to content

Commit 7b9df9d

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: Add Tagalog translations for validator messages 94, 95, 96 and 99 PHPUnit's assertContains() performs strict comparisons now. [ClassLoader][Routing] Fix namespace parsing on php 8. Fix deprecated libxml_disable_entity_loader Made reference to PHPUnit\Util\XML::loadfile php5-compatible. [Validator] Add missing translations for german and vietnamese Modernized deprecated PHPUnit assertion calls [Console] The message of "class not found" errors has changed in php 8. The PHPUnit\Util\XML class has been removed in PHPUnit 9.3. [Console] Make sure we pass a numeric array of arguments to call_user_func_array(). [Serializer] Fix that it will never reach DOMNode [Validator] sync translations [VarDumper] Improve previous fix on light array coloration [Cache] Fix #37667
2 parents 16ab88e + 54bf96a commit 7b9df9d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Tests/Resources/TranslationFilesTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\Security\Core\Tests\Resources;
1313

1414
use PHPUnit\Framework\TestCase;
15+
use PHPUnit\Util\Xml\Loader;
1516

1617
class TranslationFilesTest extends TestCase
1718
{
@@ -20,7 +21,11 @@ class TranslationFilesTest extends TestCase
2021
*/
2122
public function testTranslationFileIsValid($filePath)
2223
{
23-
\PHPUnit\Util\XML::loadfile($filePath, false, false, true);
24+
$loader = class_exists(Loader::class)
25+
? [new Loader(), 'loadFile']
26+
: ['PHPUnit\Util\XML', 'loadfile'];
27+
28+
$loader($filePath, false, false, true);
2429

2530
$this->addToAssertionCount(1);
2631
}

0 commit comments

Comments
 (0)