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:
parent
769e316f52
commit
2a9ea7ea71
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user