Skip to content

Commit 26eca5d

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 parents a41f359 + 8549e05 commit 26eca5d

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)