From 21157ae60255121b62cd120c2c7dbd6afcc80992 Mon Sep 17 00:00:00 2001 From: Ashoka de Wit Date: Wed, 10 Oct 2018 16:24:36 +0800 Subject: [PATCH] Allow variable list on one line for multiline closures https://www.php-fig.org/psr/psr-2/#6-closures explicitly shows that the following is allowed: ``` $longArgs_shortVars = function ( $longArgument, $longerArgument, $muchLongerArgument ) use ($var1) { // body }; ``` --- src/MediactCommon/ruleset.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MediactCommon/ruleset.xml b/src/MediactCommon/ruleset.xml index 8426c60..ec18979 100644 --- a/src/MediactCommon/ruleset.xml +++ b/src/MediactCommon/ruleset.xml @@ -9,7 +9,9 @@ MediaCT its extension to PSR2. - + + +