Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autoreview: Fix Psalm #245

Merged
merged 1 commit into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading