From 3b1f98df2aa2ed6b71caba7d2087359dbb8325d1 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 20 Mar 2017 10:07:14 +0100 Subject: [PATCH] Fix 5.3 support --- tests/Monolog/Handler/RollbarHandlerTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Monolog/Handler/RollbarHandlerTest.php b/tests/Monolog/Handler/RollbarHandlerTest.php index e691b1e7..f12062e3 100644 --- a/tests/Monolog/Handler/RollbarHandlerTest.php +++ b/tests/Monolog/Handler/RollbarHandlerTest.php @@ -75,8 +75,8 @@ class RollbarHandlerTest extends TestCase private function createExceptionRecord($level = Logger::DEBUG, $message = 'test', $exception = null): array { - return $this->getRecord($level, $message, [ - 'exception' => $exception ?? new Exception() - ]); + return $this->getRecord($level, $message, array( + 'exception' => $exception ?: new Exception() + )); } }