Skip to content

Commit

Permalink
chore: CS
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi committed Jul 27, 2024
1 parent a68b1db commit d58bf68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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

0 comments on commit d58bf68

Please sign in to comment.