Skip to content

Commit

Permalink
Fix #37
Browse files Browse the repository at this point in the history
  • Loading branch information
niconoe- authored Feb 15, 2022
1 parent 10f82ca commit 563d5bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhpAssumptions/Cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 563d5bf

Please sign in to comment.