From 130a206d4fb74406a7650175ee03c4b7d5c1f601 Mon Sep 17 00:00:00 2001 From: 7006 <22399553+7006@users.noreply.github.com> Date: Thu, 3 Aug 2023 13:46:48 +0300 Subject: [PATCH] Update RequirementCollection.php Use arrow function syntax --- requirement-checker/src/RequirementCollection.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/requirement-checker/src/RequirementCollection.php b/requirement-checker/src/RequirementCollection.php index 6b12ff9b7..0527c9c7c 100644 --- a/requirement-checker/src/RequirementCollection.php +++ b/requirement-checker/src/RequirementCollection.php @@ -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 ); }