Skip to content

Commit

Permalink
Update RequirementCollection.php
Browse files Browse the repository at this point in the history
Use arrow function syntax
  • Loading branch information
7006 committed Aug 3, 2023
1 parent c5d06c3 commit 130a206
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions requirement-checker/src/RequirementCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ public function evaluateRequirements()
{
return array_reduce(
$this->requirements,
function (bool $checkPassed, Requirement $requirement): bool {
return $checkPassed && $requirement->isFulfilled();
},
fn (bool $checkPassed, Requirement $requirement): bool => $checkPassed && $requirement->isFulfilled(),
true
);
}
Expand Down

0 comments on commit 130a206

Please sign in to comment.