Fix private property access, fixes #10022
parent
2fb53232d1
commit
2665f1b282
|
@ -419,7 +419,8 @@ class Application extends BaseApplication
|
||||||
} catch (\InvalidArgumentException $e) {
|
} catch (\InvalidArgumentException $e) {
|
||||||
if ($required) {
|
if ($required) {
|
||||||
$this->io->writeError($e->getMessage());
|
$this->io->writeError($e->getMessage());
|
||||||
if ($this->catchExceptions) {
|
// TODO composer 2.3 simplify to $this->areExceptionsCaught()
|
||||||
|
if (!method_exists($this, 'areExceptionsCaught') || $this->areExceptionsCaught()) {
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
throw $e;
|
throw $e;
|
||||||
|
|
Loading…
Reference in New Issue