diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 9916d2d9..53a1ad71 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -50,11 +50,6 @@ parameters: count: 1 path: src/Monolog/Handler/MandrillHandler.php - - - message: "#^Negated boolean expression is always false\\.$#" - count: 1 - path: src/Monolog/Handler/SyslogHandler.php - - message: "#^Variable property access on \\$this\\(Monolog\\\\LogRecord\\)\\.$#" count: 4 diff --git a/src/Monolog/Handler/SyslogHandler.php b/src/Monolog/Handler/SyslogHandler.php index 0816a011..99507a17 100644 --- a/src/Monolog/Handler/SyslogHandler.php +++ b/src/Monolog/Handler/SyslogHandler.php @@ -58,9 +58,7 @@ class SyslogHandler extends AbstractSyslogHandler */ protected function write(LogRecord $record): void { - if (!openlog($this->ident, $this->logopts, $this->facility)) { - throw new \LogicException('Can\'t open syslog for ident "'.$this->ident.'" and facility "'.$this->facility.'"' . Utils::getRecordMessageForException($record)); - } + openlog($this->ident, $this->logopts, $this->facility); syslog($this->toSyslogPriority($record->level), (string) $record->formatted); } }