diff --git a/src/lint/linter/__tests__/xhpast/embedded-tags.lint-test b/src/lint/linter/__tests__/xhpast/embedded-tags.lint-test index b9f6be44..d15cefb5 100644 --- a/src/lint/linter/__tests__/xhpast/embedded-tags.lint-test +++ b/src/lint/linter/__tests__/xhpast/embedded-tags.lint-test @@ -2,4 +2,3 @@ This shouldn't fatal the parser. ~~~~~~~~~~ -error:1:10 diff --git a/src/lint/linter/__tests__/xhpast/php-tags-bad.lint-test b/src/lint/linter/__tests__/xhpast/php-tags-bad.lint-test index e749bfa6..7fb52e73 100644 --- a/src/lint/linter/__tests__/xhpast/php-tags-bad.lint-test +++ b/src/lint/linter/__tests__/xhpast/php-tags-bad.lint-test @@ -4,7 +4,6 @@ garbage garbage ?> ~~~~~~~~~~ error:1:1 -error:4:1 ~~~~~~~~~~ garbage garbage selectDescendantsOfType('n_INLINE_HTML'); + + if ($inline_html) { + return; + } + foreach ($root->selectTokensOfType('T_CLOSE_TAG') as $token) { $this->raiseLintAtToken( $token,