mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 04:37:38 +02:00
Fix ignores
This commit is contained in:
@@ -44,3 +44,7 @@ parameters:
|
|||||||
|
|
||||||
# legacy GelfPHP 1.x failures
|
# legacy GelfPHP 1.x failures
|
||||||
- '# Gelf\\Message::set(Facility|Line|File)\(#'
|
- '# 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) {
|
if ($this->detectCycles) {
|
||||||
// @phpstan-ignore-next-line
|
|
||||||
if (\PHP_VERSION_ID >= 80100 && $fiber = \Fiber::getCurrent()) {
|
if (\PHP_VERSION_ID >= 80100 && $fiber = \Fiber::getCurrent()) {
|
||||||
$this->fiberLogDepth[$fiber] = $this->fiberLogDepth[$fiber] ?? 0;
|
$this->fiberLogDepth[$fiber] = $this->fiberLogDepth[$fiber] ?? 0;
|
||||||
$logDepth = ++$this->fiberLogDepth[$fiber];
|
$logDepth = ++$this->fiberLogDepth[$fiber];
|
||||||
@@ -409,7 +408,6 @@ class Logger implements LoggerInterface, ResettableInterface
|
|||||||
} finally {
|
} finally {
|
||||||
if ($this->detectCycles) {
|
if ($this->detectCycles) {
|
||||||
if (isset($fiber)) {
|
if (isset($fiber)) {
|
||||||
// @phpstan-ignore-next-line
|
|
||||||
$this->fiberLogDepth[$fiber]--;
|
$this->fiberLogDepth[$fiber]--;
|
||||||
} else {
|
} else {
|
||||||
$this->logDepth--;
|
$this->logDepth--;
|
||||||
|
Reference in New Issue
Block a user