From 30c69ef147059f440d304e7da5e0236d95e424fd Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 4 May 2023 19:47:54 +0200 Subject: Use PHPStan dynamicConstantNames (#5370) https://phpstan.org/config-reference#constants Avoid a few phpstan-ignore-next-line --- lib/lib_rss.php | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/lib_rss.php') diff --git a/lib/lib_rss.php b/lib/lib_rss.php index a7e03d4ea..e7cb7386a 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -17,7 +17,6 @@ if (!function_exists('str_starts_with')) { } if (!function_exists('syslog')) { - // @phpstan-ignore-next-line if (COPY_SYSLOG_TO_STDERR && !defined('STDERR')) { define('STDERR', fopen('php://stderr', 'w')); } @@ -31,7 +30,6 @@ if (!function_exists('syslog')) { } if (function_exists('openlog')) { - // @phpstan-ignore-next-line if (COPY_SYSLOG_TO_STDERR) { openlog('FreshRSS', LOG_CONS | LOG_ODELAY | LOG_PID | LOG_PERROR, LOG_USER); } else { -- cgit v1.2.3