Skip to content

Commit 9808777

Browse files
committed
getQueryParams as non-static function
To comply with Psr\Http\Message
1 parent 112d08f commit 9808777

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/VerifierServer/Endpoints/RequestParserTrait.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ public static function parseHeaders(string $request): array
3333
[]);
3434
}
3535

36+
public function getQueryParams(string $request): array
37+
{
38+
return self::__getQueryParams($request);
39+
}
40+
3641
/**
3742
* Parses the query parameters from a given request URL string.
3843
*
@@ -42,7 +47,7 @@ public static function parseHeaders(string $request): array
4247
* @param string $request The full URL string containing the query parameters.
4348
* @return array An associative array of query parameters.
4449
*/
45-
public static function getQueryParams(string $request): array
50+
public static function __getQueryParams(string $request): array
4651
{
4752
parse_str(parse_url($request, PHP_URL_QUERY), $params);
4853
return $params;

0 commit comments

Comments
 (0)