From fb170656e2ecc99ccddf91e34b241a03a325fff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= <5175937+theofidry@users.noreply.github.com> Date: Sat, 25 Nov 2023 20:07:43 +0100 Subject: [PATCH] fix(req-checker): Fix PHP 7.2 compatibility (#1210) --- requirement-checker/rector-src.php | 2 +- requirement-checker/src/Checker.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/requirement-checker/rector-src.php b/requirement-checker/rector-src.php index ed8d99de4..d7776b5d7 100644 --- a/requirement-checker/rector-src.php +++ b/requirement-checker/rector-src.php @@ -17,6 +17,6 @@ $rectorConfig->sets([ LevelSetList::UP_TO_PHP_72, - // DowngradeLevelSetList::DOWN_TO_PHP_72, + DowngradeLevelSetList::DOWN_TO_PHP_72, ]); }; diff --git a/requirement-checker/src/Checker.php b/requirement-checker/src/Checker.php index 91c0dc7b1..785f2dd29 100644 --- a/requirement-checker/src/Checker.php +++ b/requirement-checker/src/Checker.php @@ -170,8 +170,8 @@ private static function createCondition($type, $condition): IsFulfilled throw new InvalidArgumentException( sprintf( 'Unknown requirement type "%s".', - $type, - ), + $type + ) ); } }