Skip to content

Commit

Permalink
autoreview: Fix Psalm (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Dec 7, 2024
1 parent 51f0970 commit 4a10c2e
Show file tree
Hide file tree
Showing 4 changed files with 317 additions and 368 deletions.
1 change: 1 addition & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
strictBinaryOperands="true"
ignoreInternalFunctionFalseReturn="false"
ignoreInternalFunctionNullReturn="false"
findUnusedBaselineEntry="true"
findUnusedVariablesAndParams="true"
findUnusedCode="true"
findUnusedPsalmSuppress="true"
Expand Down
1 change: 1 addition & 0 deletions src/DependencyInjection/Compiler/AddConsoleCommandPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ private static function createDefinition(
): Definition {
$decoratedCommandDefinition = $containerBuilder->getDefinition($id);

/** @psalm-suppress ArgumentTypeCoercion */
$commandTagAttributes = self::createCommandTagAttributes(
$id,
$decoratedCommandDefinition->getClass(),
Expand Down
3 changes: 2 additions & 1 deletion tests/IO/DummyLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Closure;
use Psr\Log\LoggerInterface;
use Psr\Log\LoggerTrait;
use Stringable;
use Symfony\Component\Console\Output\OutputInterface;
use function func_get_args;

Expand All @@ -34,7 +35,7 @@ public static function getFactory(): Closure
return static fn (OutputInterface $output): LoggerInterface => new self();
}

public function log($level, $message, array $context = []): void
public function log(mixed $level, string|Stringable $message, array $context = []): void
{
$this->records[] = func_get_args();
}
Expand Down
Loading

0 comments on commit 4a10c2e

Please sign in to comment.