We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ed7571 commit 51b2ac8Copy full SHA for 51b2ac8
Magento2/Sniffs/Legacy/PhtmlTemplateSniff.php
@@ -74,7 +74,7 @@ private function checkBlockVariable(File $phpcsFile, int $stackPtr, array $token
74
private function checkHtml(File $phpcsFile, int $stackPtr): void
75
{
76
$content = $phpcsFile->getTokensAsString($stackPtr, 1);
77
- $pattern = '_\s+type="text/javascript"_';
+ $pattern = '_\s+type=(["\'])text/javascript\1_';
78
79
if (preg_match($pattern, $content)) {
80
$fix = $phpcsFile->addFixableWarning(
0 commit comments