From 168121086a0420b84a75ec16aa510f43163c7673 Mon Sep 17 00:00:00 2001 From: Dan Wallis Date: Mon, 26 Jun 2023 16:51:32 +0100 Subject: [PATCH] Ignore case --- Magento2/Sniffs/Legacy/PhtmlTemplateSniff.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Magento2/Sniffs/Legacy/PhtmlTemplateSniff.php b/Magento2/Sniffs/Legacy/PhtmlTemplateSniff.php index 4395b538..f020b061 100644 --- a/Magento2/Sniffs/Legacy/PhtmlTemplateSniff.php +++ b/Magento2/Sniffs/Legacy/PhtmlTemplateSniff.php @@ -74,7 +74,7 @@ private function checkBlockVariable(File $phpcsFile, int $stackPtr, array $token private function checkHtml(File $phpcsFile, int $stackPtr): void { $content = $phpcsFile->getTokensAsString($stackPtr, 1); - $pattern = '_\s+type=(["\'])text/javascript\1_'; + $pattern = '_\s+type=(["\'])text/javascript\1_i'; if (preg_match($pattern, $content)) { $fix = $phpcsFile->addFixableWarning(