@@ -1346,7 +1346,7 @@ private function _processParenthesisClose($token) {
1346
1346
if ($ this ->statementStack ->getCurrentStackItem ()->openParentheses === 0 ) {
1347
1347
1348
1348
// We are in a array declaration, we unstack
1349
- if ($ this ->statementStack ->getCurrentStackItem ()->type === StatementItem::TYPE_ARRAY AND
1349
+ if ($ this ->statementStack ->getCurrentStackItem ()->type === StatementItem::TYPE_ARRAY AND
1350
1350
$ this ->statementStack ->getCurrentStackItem ()->name !== 'square_bracket_open ' ) {
1351
1351
$ this ->statementStack ->pop ();
1352
1352
}
@@ -2228,7 +2228,7 @@ private function _processFunctionStatement() {
2228
2228
if ($ currentToken ->id === T_STRING ) {
2229
2229
$ nameDetected = $ currentToken ->text ;
2230
2230
}
2231
- $ curlyOpeningDetected = $ this ->tokenizer ->checkNextToken (T_PARENTHESIS_OPEN );
2231
+ $ curlyOpeningDetected = $ this ->tokenizer ->checkNextValidToken (T_PARENTHESIS_OPEN );
2232
2232
}
2233
2233
2234
2234
// currentToken should end up being the function name token
@@ -2582,8 +2582,8 @@ private function _checkEmptyBlock() {
2582
2582
* This function is launched when the current token is T_ENCAPSED_AND_WHITESPACE.
2583
2583
*/
2584
2584
private function _checkEncapsedVariablesInsideString () {
2585
- if ($ this ->_isActive ('encapsedVariablesInsideString ' ) AND !$ this ->statementStack ->getCurrentStackItem ()->inHeredoc
2586
- OR ($ this ->_inFuncCall AND !$ this ->_config ->isException ('encapsedVariablesInsideString ' , end ($ this ->_currentFuncCall )))) {
2585
+ if ($ this ->_isActive ('encapsedVariablesInsideString ' ) AND ( !$ this ->statementStack ->getCurrentStackItem ()->inHeredoc
2586
+ OR ($ this ->_inFuncCall AND !$ this ->_config ->isException ('encapsedVariablesInsideString ' , end ($ this ->_currentFuncCall ))))) {
2587
2587
$ this ->_writeError ('encapsedVariablesInsideString ' , $ this ->_getMessage ('VARIABLE_INSIDE_STRING ' ));
2588
2588
}
2589
2589
}
0 commit comments