1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 12:47:39 +02:00

Fix build

This commit is contained in:
Jordi Boggiano
2022-07-22 15:07:44 +02:00
parent 9c1fb56f6a
commit 6fdeea463c
2 changed files with 5 additions and 1 deletions

View File

@@ -8,6 +8,9 @@ parameters:
- src/
# - tests/
excludePaths:
- 'src/Monolog/Handler/PHPConsoleHandler.php'
ignoreErrors:
- '#zend_monitor_|ZEND_MONITOR_#'
- '#MongoDB\\(Client|Collection)#'

View File

@@ -369,8 +369,9 @@ class NormalizerFormatterTest extends TestCase
$record = ['context' => ['exception' => $e]];
$result = $formatter->format($record);
$offset = PHP_VERSION_ID >= 80200 ? 12 : 10;
$this->assertSame(
__FILE__.':'.(__LINE__-9),
__FILE__.':'.(__LINE__ - $offset),
$result['context']['exception']['trace'][0]
);
}