From 74d98a8c0913e45cd4a86b4203418cdc5b1a2381 Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Sat, 27 Jul 2024 16:37:24 +0700 Subject: [PATCH] chore: CS --- packages/rekapager-api-platform/src/Util/IriHelper.php | 2 +- .../rekapager-doctrine-orm-adapter/src/RowValuesFunction.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/rekapager-api-platform/src/Util/IriHelper.php b/packages/rekapager-api-platform/src/Util/IriHelper.php index b62d51a..1287303 100644 --- a/packages/rekapager-api-platform/src/Util/IriHelper.php +++ b/packages/rekapager-api-platform/src/Util/IriHelper.php @@ -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); } } diff --git a/packages/rekapager-doctrine-orm-adapter/src/RowValuesFunction.php b/packages/rekapager-doctrine-orm-adapter/src/RowValuesFunction.php index 8952c80..6ffeb9a 100644 --- a/packages/rekapager-doctrine-orm-adapter/src/RowValuesFunction.php +++ b/packages/rekapager-doctrine-orm-adapter/src/RowValuesFunction.php @@ -24,6 +24,7 @@ class RowValuesFunction extends FunctionNode /** @var list */ public array $values = []; + #[\Override] public function getSql(SqlWalker $sqlWalker): string { $queryBuilder = []; @@ -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);