mirror of
https://github.com/composer/composer
synced 2025-05-09 16:42:57 +00:00
Revert "Remove getCode usage as it is not type safe apparently, see https://github.com/phpstan/phpstan-src/pull/795"
This reverts commit 84f8fda0c6
.
And other issues fixed by PHPStan 1.3.2
This commit is contained in:
parent
65c8daa969
commit
508ac051ec
3 changed files with 4 additions and 12 deletions
|
@ -348,7 +348,7 @@ class Application extends BaseApplication
|
|||
|
||||
return $result;
|
||||
} catch (ScriptExecutionException $e) {
|
||||
return (int) $e->getCode();
|
||||
return $e->getCode();
|
||||
} catch (\Exception $e) {
|
||||
$ghe = new GithubActionError($this->io);
|
||||
$ghe->emit($e->getMessage());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue