Skip to content

Commit 962cfda

Browse files
etremblayrenovate[bot]
authored andcommitted
Suppress false positive
1 parent f58a746 commit 962cfda

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

psalm.xml

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
66
xmlns="https://getpsalm.org/schema/config"
77
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
8+
findUnusedBaselineEntry="true"
9+
findUnusedCode="false"
810
>
911
<projectFiles>
1012
<directory name="src" />

src/Adaptor/Syslog.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ private function isCurrentLog($ident, $facility)
7979
*/
8080
private function switchToLog($ident, $option, $facility)
8181
{
82+
/** @psalm-suppress RedundantCondition Always true in php 8.2 but no clear documentation found */
8283
if (openlog($ident, $option, $facility)) {
8384
self::$current_ident = $ident;
8485
self::$current_facility = $facility;
@@ -115,4 +116,4 @@ private function checkPriority($priority)
115116
throw new \Exception('Invalid syslog priority');
116117
}
117118
}
118-
}
119+
}

0 commit comments

Comments
 (0)