diff --git a/src/PhpAssumptions/Cli.php b/src/PhpAssumptions/Cli.php index 6d5155b..f40f662 100644 --- a/src/PhpAssumptions/Cli.php +++ b/src/PhpAssumptions/Cli.php @@ -102,7 +102,7 @@ public function handle(array $args) break; } - $excludes = $this->getPathsFromList($this->cli->arguments->get('exclude')); + $excludes = $this->getPathsFromList((string) $this->cli->arguments->get('exclude')); $nodeTraverser = new NodeTraverser(); @@ -135,7 +135,7 @@ public function handle(array $args) private function getPathsFromList($list) { $paths = []; - if (strlen($list) > 0) { + if ($list !== '') { $items = explode(',', $list); foreach ($items as $item) { $paths = array_merge($paths, $this->getPaths($item));