Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
salahhusa9 committed Oct 22, 2023
2 parents 163e0d3 + 3694d0c commit d5e1b66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ private function updateTo($version): string
// check if pipelines is array and not empty and items is implemented Pipeline contract
if (is_array($pipelines) && count($pipelines) > 0) {

Check failure on line 77 in src/Updater.php

View workflow job for this annotation

GitHub Actions / phpstan

Comparison operation ">" between int<1, 10> and 0 is always true.

Check failure on line 77 in src/Updater.php

View workflow job for this annotation

GitHub Actions / phpstan

Result of && is always true.
foreach ($pipelines as $pipeline) {
if (!is_subclass_of($pipeline, \Salahhusa9\Updater\Contracts\Pipeline::class)) {
throw new \Exception('Pipeline '. $pipeline .' is not implemented Pipeline contract:' . \Salahhusa9\Updater\Contracts\Pipeline::class);
if (! is_subclass_of($pipeline, \Salahhusa9\Updater\Contracts\Pipeline::class)) {
throw new \Exception('Pipeline '.$pipeline.' is not implemented Pipeline contract:'.\Salahhusa9\Updater\Contracts\Pipeline::class);
}
}
} else {
Expand Down

0 comments on commit d5e1b66

Please sign in to comment.