We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 10f82ca + 563d5bf commit 0e569b8Copy full SHA for 0e569b8
src/PhpAssumptions/Cli.php
@@ -102,7 +102,7 @@ public function handle(array $args)
102
break;
103
}
104
105
- $excludes = $this->getPathsFromList($this->cli->arguments->get('exclude'));
+ $excludes = $this->getPathsFromList((string) $this->cli->arguments->get('exclude'));
106
107
$nodeTraverser = new NodeTraverser();
108
@@ -135,7 +135,7 @@ public function handle(array $args)
135
private function getPathsFromList($list)
136
{
137
$paths = [];
138
- if (strlen($list) > 0) {
+ if ($list !== '') {
139
$items = explode(',', $list);
140
foreach ($items as $item) {
141
$paths = array_merge($paths, $this->getPaths($item));
0 commit comments