aboutsummaryrefslogtreecommitdiff
path: root/app/actualize_script.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-05-04 19:47:54 +0200
committerGravatar GitHub <noreply@github.com> 2023-05-04 19:47:54 +0200
commit30c69ef147059f440d304e7da5e0236d95e424fd (patch)
tree3aeec77db07a4fe23a3721e85dbe5175f98bc2b9 /app/actualize_script.php
parent675c56f5799ed92a6aa3a8ad3d3d8d6636f444ec (diff)
Use PHPStan dynamicConstantNames (#5370)
https://phpstan.org/config-reference#constants Avoid a few phpstan-ignore-next-line
Diffstat (limited to 'app/actualize_script.php')
-rwxr-xr-xapp/actualize_script.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/app/actualize_script.php b/app/actualize_script.php
index 160911f53..67dcc9631 100755
--- a/app/actualize_script.php
+++ b/app/actualize_script.php
@@ -30,11 +30,9 @@ define('SIMPLEPIE_SYSLOG_ENABLED', FreshRSS_Context::$system_conf->simplepie_sys
*/
function notice(string $message): void {
Minz_Log::notice($message, ADMIN_LOG);
- // @phpstan-ignore-next-line
if (!COPY_LOG_TO_SYSLOG && SIMPLEPIE_SYSLOG_ENABLED) {
syslog(LOG_NOTICE, $message);
}
- // @phpstan-ignore-next-line
if (defined('STDOUT') && !COPY_SYSLOG_TO_STDERR) {
fwrite(STDOUT, $message . "\n"); //Unbuffered
}