Jordi Boggiano 3 år sedan
förälder
incheckning
34635fdcf5
1 ändrade filer med 2 tillägg och 1 borttagningar
  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]];
         $record = ['context' => ['exception' => $e]];
         $result = $formatter->format($record);
         $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(
         $this->assertSame(
             __FILE__.':'.(__LINE__ - $offset),
             __FILE__.':'.(__LINE__ - $offset),
             $result['context']['exception']['trace'][0]
             $result['context']['exception']['trace'][0]