Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Jan 18, 2025
1 parent ca0e233 commit a8beb6c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Psalm/Internal/Codebase/InternalCallMapHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
*/
final class InternalCallMapHandler
{
private const PHP_MAJOR_VERSION = 8;
private const PHP_MINOR_VERSION = 4;
private const MIN_CALLMAP_VERSION = 70;

private static ?int $loaded_php_major_version = null;
private static ?int $loaded_php_minor_version = null;
Expand Down Expand Up @@ -360,7 +359,7 @@ public static function getCallMap(): array
return self::$call_map;
}

$analyzer_version_int = (int) ($analyzer_major_version . $analyzer_minor_version);
$analyzer_version_int = max(self::MIN_CALLMAP_VERSION, (int) ($analyzer_major_version . $analyzer_minor_version));

/** @var non-empty-array<lowercase-string, array<int|string, string>> */
$call_map = require(dirname(__DIR__, 4) . "/dictionaries/CallMap_$analyzer_version_int.php");

Check failure on line 365 in src/Psalm/Internal/Codebase/InternalCallMapHandler.php

View workflow job for this annotation

GitHub Actions / build

UnresolvableInclude

src/Psalm/Internal/Codebase/InternalCallMapHandler.php:365:21: UnresolvableInclude: Cannot resolve the given expression to a file path (see https://psalm.dev/106)

Check failure on line 365 in src/Psalm/Internal/Codebase/InternalCallMapHandler.php

View workflow job for this annotation

GitHub Actions / build

UnresolvableInclude

src/Psalm/Internal/Codebase/InternalCallMapHandler.php:365:21: UnresolvableInclude: Cannot resolve the given expression to a file path (see https://psalm.dev/106)

Check failure on line 365 in src/Psalm/Internal/Codebase/InternalCallMapHandler.php

View workflow job for this annotation

GitHub Actions / build

UnresolvableInclude

src/Psalm/Internal/Codebase/InternalCallMapHandler.php:365:21: UnresolvableInclude: Cannot resolve the given expression to a file path (see https://psalm.dev/106)

Check failure on line 365 in src/Psalm/Internal/Codebase/InternalCallMapHandler.php

View workflow job for this annotation

GitHub Actions / build

UnresolvableInclude

src/Psalm/Internal/Codebase/InternalCallMapHandler.php:365:21: UnresolvableInclude: Cannot resolve the given expression to a file path (see https://psalm.dev/106)
Expand Down

0 comments on commit a8beb6c

Please sign in to comment.