You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (preg_match('/\.(\w+)(?:\'|\")/', $tokens[$s]['content'], $matches)) {
30
+
if (preg_match('/\.(\w+)(?:\'|\")$/', $tokens[$s]['content'], $matches)) {
31
31
$ext = $matches[1];
32
32
if (!array_key_exists($ext, $phpcsFile->config->extensions)) {
33
33
$phpcsFile->addError("The file extension '.$ext' that is not specified by --extensions has been used in a include/require function. Please add it to the scan process.", $stackPtr, 'ErrMiscIncludeMismatch');
0 commit comments