@@ 1189-1194 (lines=6) @@ | ||
1186 | // This is a string, so it may be a type hint, but it could |
|
1187 | // also be a constant used as a default value. |
|
1188 | $prevComma = false; |
|
1189 | for ($t = $i; $t >= $opener; $t--) { |
|
1190 | if ($this->tokens[$t]['code'] === T_COMMA) { |
|
1191 | $prevComma = $t; |
|
1192 | break; |
|
1193 | } |
|
1194 | } |
|
1195 | ||
1196 | if ($prevComma !== false) { |
|
1197 | $nextEquals = false; |
|
@@ 1198-1203 (lines=6) @@ | ||
1195 | ||
1196 | if ($prevComma !== false) { |
|
1197 | $nextEquals = false; |
|
1198 | for ($t = $prevComma; $t < $i; $t++) { |
|
1199 | if ($this->tokens[$t]['code'] === T_EQUAL) { |
|
1200 | $nextEquals = $t; |
|
1201 | break; |
|
1202 | } |
|
1203 | } |
|
1204 | ||
1205 | if ($nextEquals !== false) { |
|
1206 | break; |