1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Support Stringable before PhpToken autoloading

This commit is contained in:
Matthew Brown 2022-03-07 16:08:24 -05:00
parent 769e316f52
commit 2a9ea7ea71

View File

@ -62,6 +62,10 @@ final class CliUtils
$in_phar = Phar::running() || strpos(__NAMESPACE__, 'HumbugBox');
if ($in_phar) {
$stringable_path = __DIR__ . '/../../../vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php';
if (file_exists($stringable_path)) {
require_once $stringable_path;
}
require_once __DIR__ . '/../../../vendor/autoload.php';
// hack required for JsonMapper