mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-03-12 12:24:50 +01:00
Fix PHP 8 exit status cannot be null error in PhutilArgumentParser
Summary: Passing null as the first parameter ($status) to exit has been deprecated and leads to a PHP error. Closes T15990 Test Plan: Run any bin scripts with PHP 8.4. `bin/arc version` should finish successfully without PHP errors. Reviewers: #blessed_committers, O1 Blessed Committers, valerio.bozzolan Reviewed By: #blessed_committers, O1 Blessed Committers, valerio.bozzolan Subscribers: aklapper, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Tags: #php_8_support Maniphest Tasks: T15990 Differential Revision: https://we.phorge.it/D25869
This commit is contained in:
parent
b52ea9932a
commit
1cb8a8d5a9
1 changed files with 1 additions and 1 deletions
|
@ -491,7 +491,7 @@ final class PhutilArgumentParser extends Phobject {
|
||||||
if ($workflow->isExecutable()) {
|
if ($workflow->isExecutable()) {
|
||||||
$workflow->setArgv($this);
|
$workflow->setArgv($this);
|
||||||
$err = $workflow->execute($this);
|
$err = $workflow->execute($this);
|
||||||
exit($err);
|
exit($err ?? 0);
|
||||||
} else {
|
} else {
|
||||||
return $workflow;
|
return $workflow;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue