Jordi Boggiano 3 лет назад
Родитель
Сommit
34635fdcf5
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      tests/Monolog/Formatter/NormalizerFormatterTest.php

+ 2 - 1
tests/Monolog/Formatter/NormalizerFormatterTest.php

@@ -369,7 +369,8 @@ class NormalizerFormatterTest extends TestCase
         $record = ['context' => ['exception' => $e]];
         $result = $formatter->format($record);
 
-        $offset = PHP_VERSION_ID >= 80200 ? 12 : 10;
+        // See https://github.com/php/php-src/issues/8810 fixed in PHP 8.2
+        $offset = PHP_VERSION_ID >= 80200 ? 13 : 11;
         $this->assertSame(
             __FILE__.':'.(__LINE__ - $offset),
             $result['context']['exception']['trace'][0]