From 8549e05755d2b6f7bb7446f3be4c36e243040fcf Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Tue, 21 Jun 2016 09:14:09 +0200 Subject: [PATCH] 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). --- src/Symfony/Bridge/PhpUnit/ErrorAssert.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bridge/PhpUnit/ErrorAssert.php b/src/Symfony/Bridge/PhpUnit/ErrorAssert.php index 84da934a1a..3b443e6a1a 100644 --- a/src/Symfony/Bridge/PhpUnit/ErrorAssert.php +++ b/src/Symfony/Bridge/PhpUnit/ErrorAssert.php @@ -53,7 +53,7 @@ final class ErrorAssert $triggeredMessages[] = $message; }); - $testCode(); + call_user_func($testCode); } catch (\Exception $e) { } catch (\Throwable $e) { }