Skip to content

Commit

Permalink
fix: make it work for php >= 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Sep 29, 2022
1 parent b285591 commit 9085d37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utils/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public static function removeParams(
* The URI.
* @param string $key
* The key of the parameter to add to the URI.
* @param string $value
* @param mixed $value
* The value of the parameter to add to the URI.
* @param bool $force
* If true, overwrite any existing parameter from the URI.
Expand All @@ -122,7 +122,7 @@ public static function removeParams(
public static function withParam(
UriInterface $uri,
string $key,
mixed $value,
$value,
bool $force = true
): UriInterface {
$params = self::getParams($uri) + [$key => $value];
Expand Down

0 comments on commit 9085d37

Please sign in to comment.