Skip to content

Commit 9f6e547

Browse files
Hans-Christian HalfbrodtHans-Christian Halfbrodt
authored andcommitted
Bugfix - encapsedVariablesInsideString config ignored if in exception
1 parent d73dd48 commit 9f6e547

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PHPCheckstyle/PHPCheckstyle.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2582,8 +2582,8 @@ private function _checkEmptyBlock() {
25822582
* This function is launched when the current token is T_ENCAPSED_AND_WHITESPACE.
25832583
*/
25842584
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))))) {
25872587
$this->_writeError('encapsedVariablesInsideString', $this->_getMessage('VARIABLE_INSIDE_STRING'));
25882588
}
25892589
}

0 commit comments

Comments
 (0)