1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-11 09:32:55 +00:00

SCA with PHP Inspections (EA Extended)

This commit is contained in:
Vladimir Reznichenko 2017-09-11 19:40:43 +02:00
parent 6c1da86437
commit c8615358cb
23 changed files with 38 additions and 70 deletions

View file

@ -90,7 +90,7 @@ EOT
$args = $input->getArgument('args');
if (!is_null($timeout = $input->getOption('timeout'))) {
if (null !== $timeout = $input->getOption('timeout')) {
if (!ctype_digit($timeout)) {
throw new \RuntimeException('Timeout value must be numeric and positive if defined, or 0 for forever');
}