1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-07-30 18:00:17 +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

@@ -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\.#'

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