Skip to content

Commit

Permalink
Merge branch 'master' into parallel-exec
Browse files Browse the repository at this point in the history
# Conflicts:
#	csv-blueprint.php
  • Loading branch information
SmetDenis committed Apr 10, 2024
2 parents f0754a0 + fcb71a4 commit 3411600
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions csv-blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

WorkerPool::setBootstrap($autoloader);

if ('cli' !== \PHP_SAPI) {
throw new Exception('This script must be run from the command line.');
}

// Fix for GitHub actions. See action.yml
$_SERVER['argv'] = Utils::fixArgv($_SERVER['argv'] ?? []);
$_SERVER['argc'] = \count($_SERVER['argv']);
Expand Down

0 comments on commit 3411600

Please sign in to comment.