Skip to content

Commit 8549e05

Browse files
committed
use call_user_func() for PHP 5.3 compatibility
Not all callables can be called directly on PHP 5.3 (for example, `array('className', 'methodName')` does not work).
1 parent 92d80c9 commit 8549e05

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)