mirror of
https://github.com/Seldaek/monolog.git
synced 2025-07-30 18:00:17 +02:00
Fix ignores
This commit is contained in:
@@ -44,3 +44,7 @@ parameters:
|
||||
|
||||
# legacy GelfPHP 1.x failures
|
||||
- '# Gelf\\Message::set(Facility|Line|File)\(#'
|
||||
|
||||
# php 8.1 Fiber failures
|
||||
- '#unknown class Fiber#'
|
||||
- '#Offset mixed does not exist on WeakMap<Fiber, int>\|null\.#'
|
||||
|
@@ -344,7 +344,6 @@ class Logger implements LoggerInterface, ResettableInterface
|
||||
}
|
||||
|
||||
if ($this->detectCycles) {
|
||||
// @phpstan-ignore-next-line
|
||||
if (\PHP_VERSION_ID >= 80100 && $fiber = \Fiber::getCurrent()) {
|
||||
$this->fiberLogDepth[$fiber] = $this->fiberLogDepth[$fiber] ?? 0;
|
||||
$logDepth = ++$this->fiberLogDepth[$fiber];
|
||||
@@ -409,7 +408,6 @@ class Logger implements LoggerInterface, ResettableInterface
|
||||
} finally {
|
||||
if ($this->detectCycles) {
|
||||
if (isset($fiber)) {
|
||||
// @phpstan-ignore-next-line
|
||||
$this->fiberLogDepth[$fiber]--;
|
||||
} else {
|
||||
$this->logDepth--;
|
||||
|
Reference in New Issue
Block a user