Skip to content

Commit 0e569b8

Browse files
authored
Merge pull request #38 from niconoe-/patch-1
Fix #37
2 parents 10f82ca + 563d5bf commit 0e569b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PhpAssumptions/Cli.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function handle(array $args)
102102
break;
103103
}
104104

105-
$excludes = $this->getPathsFromList($this->cli->arguments->get('exclude'));
105+
$excludes = $this->getPathsFromList((string) $this->cli->arguments->get('exclude'));
106106

107107
$nodeTraverser = new NodeTraverser();
108108

@@ -135,7 +135,7 @@ public function handle(array $args)
135135
private function getPathsFromList($list)
136136
{
137137
$paths = [];
138-
if (strlen($list) > 0) {
138+
if ($list !== '') {
139139
$items = explode(',', $list);
140140
foreach ($items as $item) {
141141
$paths = array_merge($paths, $this->getPaths($item));

0 commit comments

Comments
 (0)