Skip to content

Commit 6fdeea4

Browse files
committed
Fix build
1 parent 9c1fb56 commit 6fdeea4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

phpstan.neon.dist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ parameters:
88
- src/
99
# - tests/
1010

11+
excludePaths:
12+
- 'src/Monolog/Handler/PHPConsoleHandler.php'
13+
1114
ignoreErrors:
1215
- '#zend_monitor_|ZEND_MONITOR_#'
1316
- '#MongoDB\\(Client|Collection)#'

tests/Monolog/Formatter/NormalizerFormatterTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,9 @@ public function testExceptionTraceWithArgs()
369369
$record = ['context' => ['exception' => $e]];
370370
$result = $formatter->format($record);
371371

372+
$offset = PHP_VERSION_ID >= 80200 ? 12 : 10;
372373
$this->assertSame(
373-
__FILE__.':'.(__LINE__-9),
374+
__FILE__.':'.(__LINE__ - $offset),
374375
$result['context']['exception']['trace'][0]
375376
);
376377
}

0 commit comments

Comments
 (0)