Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Feb 18, 2025
1 parent 9238574 commit 298d3cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="6.x-dev@c48158beaa48190a4ddcd84bae16f4f909895143">
<files psalm-version="6.x-dev@c424cac5d8d8492cb430bcad7aeda4b5d2ca6355">
<file src="examples/TemplateChecker.php">
<PossiblyUndefinedIntArrayOffset>
<code><![CDATA[$comment_block->tags['variablesfrom'][0]]]></code>
Expand Down Expand Up @@ -1639,6 +1639,9 @@
<code><![CDATA[empty($baselineFile)]]></code>
<code><![CDATA[getenv('PSALM_SHEPHERD')]]></code>
</RiskyTruthyFalsyComparison>
<UnusedPsalmSuppress>
<code><![CDATA[PossiblyNullArgument]]></code>
</UnusedPsalmSuppress>
</file>
<file src="src/Psalm/Internal/Cli/Psalter.php">
<RiskyTruthyFalsyComparison>
Expand Down
6 changes: 3 additions & 3 deletions src/Psalm/Internal/Cli/Psalm.php
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ private static function restart(array $options, int $threads, int $scanThreads,
}
}

/** @psalm-suppress UnusedParam $argv is being reported as unused */
/** @param array<int, string> $argv */
private static function forwardCliCall(array $options, array $argv): void
{
if (isset($options['alter'])) {
Expand All @@ -1040,9 +1040,9 @@ private static function forwardCliCall(array $options, array $argv): void

if (isset($options['review'])) {
require_once __DIR__ . '/Review.php';
assert($argv !== null);
array_shift($argv);
Review::run($argv);
/** @psalm-suppress PossiblyNullArgument */
Review::run(array_values($argv));
exit;
}

Expand Down

0 comments on commit 298d3cc

Please sign in to comment.