From 0b23e0b163dffed07eb73cf022d3e64bf62ba244 Mon Sep 17 00:00:00 2001 From: Willington Vega Date: Sun, 6 Feb 2022 20:52:41 -0500 Subject: [PATCH] Allow parenthesis around anonymous class parameters --- src/CodeManipulation/Actions/RedefinitionOfNew.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CodeManipulation/Actions/RedefinitionOfNew.php b/src/CodeManipulation/Actions/RedefinitionOfNew.php index c7228f6..02344d8 100644 --- a/src/CodeManipulation/Actions/RedefinitionOfNew.php +++ b/src/CodeManipulation/Actions/RedefinitionOfNew.php @@ -158,6 +158,7 @@ function hasExtraParentheses(Source $s, $new) T_ARRAY, T_PRINT, T_ECHO, + T_CLASS, Generic\NAME_FULLY_QUALIFIED, Generic\NAME_QUALIFIED, Generic\NAME_RELATIVE,