|
if (preg_match('/\.(\w+)(?:\'|\")$/', $tokens[$s]['content'], $matches)) { |
for example
$local_config = __DIR__ . '/test-local.php';
if (file_exists($local_config)) {
$config = yii\helpers\ArrayHelper::merge($config, require($local_config));
}
file may be change its status ,so we also do file_exists checking before we merge this file.
i think it shouldn't be ErrMiscIncludeMismatchNoExt
phpcs-security-audit/Security/Sniffs/Misc/IncludeMismatchSniff.php
Line 36 in 8bb3a19
for example
file may be change its status ,so we also do file_exists checking before we merge this file.
i think it shouldn't be ErrMiscIncludeMismatchNoExt