Skip to content

Commit

Permalink
PHAR stubs now exit properly again (ref #1484)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed Jul 11, 2017
1 parent 9fcb514 commit 5fd3d10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build-phar.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@
$stub .= 'Phar::mapPhar(\''.$pharName.'\');'."\n";
$stub .= 'require_once "phar://'.$pharName.'/autoload.php";'."\n";
$stub .= '$runner = new PHP_CodeSniffer\Runner();'."\n";
$stub .= '$runner->run'.$script.'();'."\n";
$stub .= '$exitCode = $runner->run'.$script.'();'."\n";
$stub .= 'exit($exitCode);'."\n";
$stub .= '__HALT_COMPILER();';
$phar->setStub($stub);

Expand Down

0 comments on commit 5fd3d10

Please sign in to comment.