mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 09:06:10 +02:00
Add phpstan strict rules and deprecation rules, fix all related issues
This commit is contained in:
@@ -109,11 +109,13 @@ class SyslogUdpHandler extends AbstractSyslogHandler
|
||||
{
|
||||
$priority = $severity + $this->facility;
|
||||
|
||||
if (!$pid = getmypid()) {
|
||||
$pid = getmypid();
|
||||
if (false === $pid) {
|
||||
$pid = '-';
|
||||
}
|
||||
|
||||
if (!$hostname = gethostname()) {
|
||||
$hostname = gethostname();
|
||||
if (false === $hostname) {
|
||||
$hostname = '-';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user