Skip to content

Commit 96c6201

Browse files
committed
FIX: const instead of function call
1 parent fe84e56 commit 96c6201

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Action/ReadFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function run(): string
2121
throw new Exception('File not found, not readable and/or not in a whitelisted directory', Exception::FILE_NOT_FOUND);
2222
}
2323

24-
if (php_sapi_name() !== 'cli') {
24+
if (PHP_SAPI !== 'cli') {
2525
header (self::CHECKSUM_HEADER . ': ' . md5_file($_GET['filename']));
2626
}
2727

0 commit comments

Comments
 (0)