diff --git a/src/WatcherCommand.php b/src/WatcherCommand.php index 4e2795e..3255cc1 100644 --- a/src/WatcherCommand.php +++ b/src/WatcherCommand.php @@ -118,7 +118,8 @@ protected function displayOptions(array $options, InputInterface $input, OutputI } $output->newLine(); - $output->text("Tests will be rerun when {$options['watch']['fileMask']} files are modified in"); + $fileMask = is_array($options['watch']['fileMask']) ? implode(',', $options['watch']['fileMask']) : $options['watch']['fileMask']; + $output->text("Tests will be rerun when {$fileMask} files are modified in"); $output->listing($options['watch']['directories']);