Skip to content

Commit 50409b8

Browse files
committed
openlog never fails on php8.2 so remove check
1 parent 521186e commit 50409b8

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ parameters:
5050
count: 1
5151
path: src/Monolog/Handler/MandrillHandler.php
5252

53-
-
54-
message: "#^Negated boolean expression is always false\\.$#"
55-
count: 1
56-
path: src/Monolog/Handler/SyslogHandler.php
57-
5853
-
5954
message: "#^Variable property access on \\$this\\(Monolog\\\\LogRecord\\)\\.$#"
6055
count: 4

src/Monolog/Handler/SyslogHandler.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ public function close(): void
5858
*/
5959
protected function write(LogRecord $record): void
6060
{
61-
if (!openlog($this->ident, $this->logopts, $this->facility)) {
62-
throw new \LogicException('Can\'t open syslog for ident "'.$this->ident.'" and facility "'.$this->facility.'"' . Utils::getRecordMessageForException($record));
63-
}
61+
openlog($this->ident, $this->logopts, $this->facility);
6462
syslog($this->toSyslogPriority($record->level), (string) $record->formatted);
6563
}
6664
}

0 commit comments

Comments
 (0)