1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-21 16:46:11 +02:00

Merge branch '2.x'

This commit is contained in:
Jordi Boggiano
2022-07-22 15:51:15 +02:00
21 changed files with 181 additions and 42 deletions

View File

@@ -364,8 +364,10 @@ class NormalizerFormatterTest extends TestCase
$record = $this->getRecord(context: ['exception' => $e]);
$result = $formatter->format($record);
// 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__-9),
__FILE__.':'.(__LINE__ - $offset),
$result['context']['exception']['trace'][0]
);
}