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() + )); } }