Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit26eca5d

Browse files
committed
bug#19126 [PhpUnitBridge] use call_user_func() for PHP 5.3 compatibility (xabbuh)
This PR was merged into the 3.2-dev branch.Discussion----------[PhpUnitBridge] use call_user_func() for PHP 5.3 compatibility| Q | A| ------------- | ---| Branch? | master| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets || License | MIT| Doc PR |Not all callables can be called directly on PHP 5.3 (for example, `array('className', 'methodName')` does not work).Commits-------8549e05 use call_user_func() for PHP 5.3 compatibility
2 parentsa41f359 +8549e05 commit26eca5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/Symfony/Bridge/PhpUnit/ErrorAssert.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static function assertErrorsAreTriggered($expectedType, $expectedMessages
5353
$triggeredMessages[] =$message;
5454
});
5555

56-
$testCode();
56+
call_user_func($testCode);
5757
}catch (\Exception$e) {
5858
}catch (\Throwable$e) {
5959
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp