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 a503f54 commit 5ff91b8Copy full SHA for 5ff91b8
bin/php-scoper
@@ -17,6 +17,12 @@ use Isolated\Symfony\Component\Finder\Finder as IsolatedFinder;
17
use RuntimeException;
18
use Symfony\Component\Finder\Finder;
19
20
+if (PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg') {
21
+ echo PHP_EOL.'PHP-Scoper may only be invoked from a command line'.\PHP_EOL;
22
+
23
+ exit(1);
24
+}
25
26
$findAutoload = function () {
27
if (file_exists($autoload = __DIR__.'/../../../autoload.php')) {
28
// Is installed via composer
0 commit comments