Skip to content

Commit

Permalink
fix phpstan issue
Browse files Browse the repository at this point in the history
  • Loading branch information
d8vjork committed Aug 15, 2024
1 parent 13a1cb0 commit 0063303
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/Utils/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function parse_http_query(string $query = null): array

if ($aggregator) {
$processedQueryParameters[$aggregator] = array_merge_recursive($processedQueryParameters[$aggregator] ?? [], [$key => $value]);

return;
}

Expand Down Expand Up @@ -74,12 +74,9 @@ function build_http_query(array $query): string

if (
is_array($value)
&& (is_string(array_key_first($value))
|| (! is_string(array_key_first($value))
&& is_array($value[0])
&& is_string(array_key_first($value[0]))
)
)
&& ! is_string(array_key_first($value))
&& is_array($value[0])
&& is_string(array_key_first($value[0]))
) {
array_walk($value, $iterator, $paremeterKey);

Expand Down

0 comments on commit 0063303

Please sign in to comment.