1
0
Fork 0
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:
Jordi Boggiano 2022-01-07 09:26:22 +01:00
parent 65c8daa969
commit 508ac051ec
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
3 changed files with 4 additions and 12 deletions

View file

@ -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());