Skip to content

Commit

Permalink
Instead of checking token is not T_INLINE_HTML, explicitly look for s…
Browse files Browse the repository at this point in the history
…tring tokens

In the case that PHP adds another type of string token
  • Loading branch information
rebeccahum committed Mar 2, 2021
1 parent d1e04f6 commit f53d5f0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function process_token( $stackPtr ) {

$content = $this->tokens[ $html ]['content'];

if ( $this->tokens[ $html ]['code'] !== 'T_INLINE_HTML' ) {
if ( isset( Tokens::$stringTokens[ $this->tokens[ $html ]['code'] ] ) === true ) {
$content = Sniff::strip_quotes( $content );
}

Expand Down

0 comments on commit f53d5f0

Please sign in to comment.