src/requirements.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

if (!(file_exists(__DIR__ . '/../vendor/autoload.php') || file_exists(__DIR__ . '/../../../autoload.php'))) {
    // @phan-suppress-next-line PhanPluginRemoveDebugCall
    fwrite(
        STDERR,
        'Autoloader not found. Make sure you run `composer install` before running Phan. See https://github.com/phan/phan#getting-started for more details.'
    );
    exit(1);
}

// Fix Turkish locales(tr_TR) - strtolower('I') is not 'i', so phan lookup might fail.
// (But continue formatting times, etc. in the user's locale)
setlocale(LC_CTYPE, 'C');