Skip to content

Commit

Permalink
Support Stringable before PhpToken autoloading
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Mar 7, 2022
1 parent 769e316 commit 2a9ea7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Psalm/Internal/CliUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ public static function requireAutoloaders(
$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
Expand Down

0 comments on commit 2a9ea7e

Please sign in to comment.