Skip to content

Commit

Permalink
Improve phpstan findings
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosas committed Nov 12, 2021
1 parent 8d4692a commit 8f3a0b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Statement/StatementBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ private function selectOrigins(array $includedInRule, array $excludedInRule, Ref
}

if (!empty($this->configuration->getSrcIncluded())) {
$filteredClassNames = [];

$resolvedIncludeRow = [];
foreach ($this->configuration->getSrcIncluded() as $inc) {
$resolvedIncludeRow[] = $this->selectorResolver->resolve(new PathSelector($inc), $map);
}
foreach ($resolvedIncludeRow ?? [] as $includedClasses) {
$filteredClassNames = [];
foreach ($resolvedIncludeRow as $includedClasses) {
/** @var ClassLike $includedClassName */
foreach ($includedClasses as $includedClassName) {
/** @var ClassLike $value */
Expand Down

0 comments on commit 8f3a0b4

Please sign in to comment.