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:
parent
6c1da86437
commit
c8615358cb
23 changed files with 38 additions and 70 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue