@@ 1229-1234 (lines=6) @@ | ||
1226 | // This is a string, so it may be a type hint, but it could |
|
1227 | // also be a constant used as a default value. |
|
1228 | $prevComma = false; |
|
1229 | for ($t = $i; $t >= $opener; $t--) { |
|
1230 | if ($this->tokens[$t]['code'] === T_COMMA) { |
|
1231 | $prevComma = $t; |
|
1232 | break; |
|
1233 | } |
|
1234 | } |
|
1235 | ||
1236 | if ($prevComma !== false) { |
|
1237 | $nextEquals = false; |
|
@@ 1238-1243 (lines=6) @@ | ||
1235 | ||
1236 | if ($prevComma !== false) { |
|
1237 | $nextEquals = false; |
|
1238 | for ($t = $prevComma; $t < $i; $t++) { |
|
1239 | if ($this->tokens[$t]['code'] === T_EQUAL) { |
|
1240 | $nextEquals = $t; |
|
1241 | break; |
|
1242 | } |
|
1243 | } |
|
1244 | ||
1245 | if ($nextEquals !== false) { |
|
1246 | break; |