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 7cb2598 commit 302003d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rekapager-api-platform/src/Util/IriHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,6 @@ public static function parseRequestParams(string $source): array
* @psalm-suppress MixedArgumentTypeCoercion
* @phpstan-ignore-next-line
*/
return array_combine(array_map('hex2bin', array_keys($params)), $params);
return array_combine(array_map(hex2bin(...), array_keys($params)), $params);

Check failure on line 137 in packages/rekapager-api-platform/src/Util/IriHelper.php

View workflow job for this annotation

GitHub Actions / Symfony 7.*, highest deps, PHP 8.2, ubuntu-latest

InvalidScalarArgument

packages/rekapager-api-platform/src/Util/IriHelper.php:137:30: InvalidScalarArgument: Argument 1 of array_combine expects array<array-key, array-key>, but list<false|string> provided (see https://psalm.dev/012)

Check failure on line 137 in packages/rekapager-api-platform/src/Util/IriHelper.php

View workflow job for this annotation

GitHub Actions / Symfony 7.*, highest deps, PHP 8.3, ubuntu-latest

InvalidScalarArgument

packages/rekapager-api-platform/src/Util/IriHelper.php:137:30: InvalidScalarArgument: Argument 1 of array_combine expects array<array-key, array-key>, but list<false|string> provided (see https://psalm.dev/012)
}
}
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 302003d

Please sign in to comment.