1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-04 20:27:31 +02:00
This commit is contained in:
Jordi Boggiano
2022-07-22 15:08:12 +02:00
parent 6fdeea463c
commit 34635fdcf5

View File

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