Skip to content

Commit cd5769f

Browse files
committed
minor #37782 Made reference to PHPUnit\Util\XML::loadfile php5-compatible (derrabus)
This PR was merged into the 3.4 branch. Discussion ---------- Made reference to PHPUnit\Util\XML::loadfile php5-compatible | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | N/A Fixup of #37778. My code was apparently not php5-friendly. Sorry for that. 😓 Commits ------- 4bf6405 Made reference to PHPUnit\Util\XML::loadfile php5-compatible.
2 parents 33e7130 + 4bf6405 commit cd5769f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Symfony/Component/Form/Tests/Resources/TranslationFilesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function testTranslationFileIsValid($filePath)
2323
{
2424
$loader = class_exists(Loader::class)
2525
? [new Loader(), 'loadFile']
26-
: 'PHPUnit\Util\XML::loadfile';
26+
: ['PHPUnit\Util\XML', 'loadfile'];
2727

2828
$loader($filePath, false, false, true);
2929

src/Symfony/Component/Security/Core/Tests/Resources/TranslationFilesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function testTranslationFileIsValid($filePath)
2323
{
2424
$loader = class_exists(Loader::class)
2525
? [new Loader(), 'loadFile']
26-
: 'PHPUnit\Util\XML::loadfile';
26+
: ['PHPUnit\Util\XML', 'loadfile'];
2727

2828
$loader($filePath, false, false, true);
2929

src/Symfony/Component/Validator/Tests/Resources/TranslationFilesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function testTranslationFileIsValid($filePath)
2323
{
2424
$loader = class_exists(Loader::class)
2525
? [new Loader(), 'loadFile']
26-
: 'PHPUnit\Util\XML::loadfile';
26+
: ['PHPUnit\Util\XML', 'loadfile'];
2727

2828
$loader($filePath, false, false, true);
2929

0 commit comments

Comments
 (0)