1
0
Fork 0

Fix private property access, fixes #10022

pull/10039/head
Jordi Boggiano 2021-07-28 14:33:47 +02:00
parent 2fb53232d1
commit 2665f1b282
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 2 additions and 1 deletions

View File

@ -419,7 +419,8 @@ class Application extends BaseApplication
} catch (\InvalidArgumentException $e) {
if ($required) {
$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);
}
throw $e;