Pārlūkot izejas kodu

Fix 5.3 support

Jordi Boggiano 8 gadi atpakaļ
vecāks
revīzija
3b1f98df2a
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      tests/Monolog/Handler/RollbarHandlerTest.php

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