File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/Symfony/Component/OptionsResolver Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1194,14 +1194,14 @@ private function splitOutsideParenthesis(string $type): array
11941194 $ currentPart = '' ;
11951195 $ parenthesisLevel = 0 ;
11961196
1197- $ typeLength = strlen ($ type );
1198- for ($ i = 0 ; $ i < $ typeLength ; $ i ++ ) {
1197+ $ typeLength = \ strlen ($ type );
1198+ for ($ i = 0 ; $ i < $ typeLength ; ++ $ i ) {
11991199 $ char = $ type [$ i ];
12001200
12011201 if ('( ' === $ char ) {
1202- $ parenthesisLevel ++ ;
1202+ ++ $ parenthesisLevel ;
12031203 } elseif (') ' === $ char ) {
1204- $ parenthesisLevel -- ;
1204+ -- $ parenthesisLevel ;
12051205 }
12061206
12071207 if ('| ' === $ char && 0 === $ parenthesisLevel ) {
@@ -1212,7 +1212,7 @@ private function splitOutsideParenthesis(string $type): array
12121212 }
12131213 }
12141214
1215- if ($ currentPart !== '' ) {
1215+ if ('' !== $ currentPart ) {
12161216 $ parts [] = $ currentPart ;
12171217 }
12181218
You can’t perform that action at this time.
0 commit comments