Skip to content

Question for ErrMiscIncludeMismatchNoExt #93

Description

@sulingr

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions