Skip to content

Commit ceaf784

Browse files
authored
Update Command.php
1 parent 34de059 commit ceaf784

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/TextUI/Command.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -338,13 +338,15 @@ protected function handleArguments(array $argv)
338338
break;
339339

340340
case '--test-suffix':
341-
$o1 = isset($option[1]) ? $option[1] : '';
342-
$this->arguments['testSuffixes'] = explode(
343-
',',
344-
$o1
345-
);
341+
$this->arguments['testSuffixes'] = [];
342+
if (isset($option[1])) {
343+
$this->arguments['testSuffixes'] = explode(
344+
',',
345+
$option[1]
346+
);
347+
}
346348
break;
347-
349+
348350
case '--include-path':
349351
$includePath = $option[1];
350352
break;

0 commit comments

Comments
 (0)