Skip to content

Commit

Permalink
Do not throw exceptions on deprecation errors in project dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Feb 18, 2025
1 parent 1206561 commit 6c257d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Internal/CliUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public static function requireAutoloaders(
* @psalm-suppress UnresolvableInclude
* @var mixed
*/
$autoloader = require_once $file;
$autoloader = ErrorHandler::runWithExceptionsSuppressed(static fn () => require_once $file);

Check failure on line 136 in src/Psalm/Internal/CliUtils.php

View workflow job for this annotation

GitHub Actions / build

MissingClosureReturnType

src/Psalm/Internal/CliUtils.php:136:69: MissingClosureReturnType: Closure does not have a return type, expecting mixed (see https://psalm.dev/068)

Check failure on line 136 in src/Psalm/Internal/CliUtils.php

View workflow job for this annotation

GitHub Actions / build

MissingClosureReturnType

src/Psalm/Internal/CliUtils.php:136:69: MissingClosureReturnType: Closure does not have a return type, expecting mixed (see https://psalm.dev/068)

if (!$first_autoloader
&& $autoloader instanceof ClassLoader
Expand Down

0 comments on commit 6c257d1

Please sign in to comment.