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:
@@ -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]
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user