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

chore: CS #158

Merged
merged 1 commit into from
Jul 27, 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
3 changes: 2 additions & 1 deletion packages/rekapager-api-platform/src/Util/IriHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ public static function parseRequestParams(string $source): array

/**
* @psalm-suppress MixedArgumentTypeCoercion
* @psalm-suppress InvalidScalarArgument
* @phpstan-ignore-next-line
*/
return array_combine(array_map('hex2bin', array_keys($params)), $params);
return array_combine(array_map(hex2bin(...), array_keys($params)), $params);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class RowValuesFunction extends FunctionNode
/** @var list<Node|string> */
public array $values = [];

#[\Override]
public function getSql(SqlWalker $sqlWalker): string
{
$queryBuilder = [];
Expand All @@ -35,6 +36,7 @@ public function getSql(SqlWalker $sqlWalker): string
return '(' . implode(', ', $queryBuilder) . ')';
}

#[\Override]
public function parse(Parser $parser): void
{
$parser->match(TokenType::T_IDENTIFIER);
Expand Down