Skip to content

Commit

Permalink
improve variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Sep 2, 2019
1 parent f48a2d7 commit f1f5ae0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `ignition` will be documented in this file

## 1.2.0 - 2019-09-02

- add `ignored_solution_providers` key to config file

## 1.1.1 - 2019-09-02

- Fixed context tab crash when not using git (#24)
Expand Down
4 changes: 2 additions & 2 deletions src/SolutionProviders/SolutionProviderRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function getSolutionsForThrowable(Throwable $throwable): array
$solutions[] = $throwable->getSolution();
}

$solutionProviders = $this->solutionProviders
$providedSolutions = $this->solutionProviders
->filter(function (string $solutionClass) {
if (! in_array(HasSolutionsForThrowable::class, class_implements($solutionClass))) {
return false;
Expand All @@ -68,7 +68,7 @@ public function getSolutionsForThrowable(Throwable $throwable): array
->flatten()
->toArray();

return array_merge($solutions, $solutionProviders);
return array_merge($solutions, $providedSolutions);
}

public function getSolutionForClass(string $solutionClass): ?Solution
Expand Down

0 comments on commit f1f5ae0

Please sign in to comment.