Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Jul 22, 2022
1 parent 9c1fb56 commit 6fdeea4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ parameters:
- src/
# - tests/

excludePaths:
- 'src/Monolog/Handler/PHPConsoleHandler.php'

ignoreErrors:
- '#zend_monitor_|ZEND_MONITOR_#'
- '#MongoDB\\(Client|Collection)#'
Expand Down
3 changes: 2 additions & 1 deletion tests/Monolog/Formatter/NormalizerFormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,9 @@ public function testExceptionTraceWithArgs()
$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]
);
}
Expand Down

0 comments on commit 6fdeea4

Please sign in to comment.