1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-24 10:06:08 +02:00

Fix ignores

This commit is contained in:
Jordi Boggiano
2023-02-04 15:53:31 +01:00
parent 0f014206a4
commit 6459aeb4a7
2 changed files with 4 additions and 2 deletions

View File

@@ -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--;