expressionList();
if (token == TokenNameSEMICOLON) {
getNextToken();
-// if (token != TokenNameINLINE_HTML) {
-// // TODO should this become a configurable warning?
-// reportSyntaxError("Probably '?>' expected after PHP short tag expression (only the first expression will be echoed).");
-// }
+ // if (token != TokenNameINLINE_HTML) {
+ // // TODO should this become a configurable warning?
+ // reportSyntaxError("Probably '?>' expected after PHP short tag
+ // expression (only the first expression will be echoed).");
+ // }
} else {
if (token != TokenNameINLINE_HTML) {
throwSyntaxError("';' expected after PHP short tag '<?=' expression.");
// | non_empty_parameter_list ',' optional_class_type T_VARIABLE '='
// static_scalar
char[] typeIdentifier = null;
- if (token == TokenNameIdentifier || token == TokenNameVariable || token == TokenNameAND) {
+ if (token == TokenNameIdentifier || token == TokenNamearray || token == TokenNameVariable || token == TokenNameAND) {
HashSet set = peekVariableSet();
while (true) {
- if (token == TokenNameIdentifier) {
+ if (token == TokenNameIdentifier || token == TokenNamearray) {// feature req. #1254275
typeIdentifier = scanner.getCurrentIdentifierSource();
getNextToken();
}