We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd2d272 commit c8ae944Copy full SHA for c8ae944
bin/php-sl.php
@@ -1,3 +1,4 @@
1
+#!/usr/bin/env php
2
<?php
3
4
/**
@@ -6,6 +7,10 @@
6
7
* @package PhpSecurityLinter
8
*/
9
10
+error_reporting(E_ALL);
11
+ini_set('display_errors', '1');
12
+ini_set('display_startup_errors', '1');
13
+
14
if (PHP_SAPI !== 'cli') {
15
fwrite(STDERR, "Error: This script can only be run from terminal.\n");
16
exit(1);
@@ -38,7 +43,7 @@
38
43
function showHelp(): void
39
44
{
40
45
echo <<<HELP
41
- PHP Security Linter 3.0.0.3
46
+ PHP Security Linter
42
47
Usage: php bin/php-sl.php [options]
48
49
Options:
@@ -160,7 +165,4 @@ function runCli(array $argv): int
160
165
}
161
166
162
167
163
-// Only execute if run directly (not when included).
164
-if (realpath($argv[0]) === realpath(__FILE__)) {
- runCli($argv);
-}
168
+runCli($argv);
0 commit comments