|
@@ -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]
|