Skip to content

Commit

Permalink
Merge pull request #38 from niconoe-/patch-1
Browse files Browse the repository at this point in the history
Fix #37
  • Loading branch information
rskuipers authored Feb 15, 2022
2 parents 10f82ca + 563d5bf commit 0e569b8
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 0e569b8

Please sign in to comment.