diff --git a/composer.json b/composer.json index 7784a613..561f900b 100644 --- a/composer.json +++ b/composer.json @@ -14,9 +14,9 @@ ], "require": { "php": "^7.3|^8.0", - "ql/uri-template": "^1.1", "webmozart/assert": "^1.2", - "guzzlehttp/guzzle": "^6.3|^7.0.1" + "guzzlehttp/guzzle": "^6.3|^7.0.1", + "rize/uri-template": "0.3.5" }, "require-dev": { "phpunit/phpunit": "^8.4", diff --git a/src/Http/Hal/HalLink.php b/src/Http/Hal/HalLink.php index 519b46a5..a23ac52a 100644 --- a/src/Http/Hal/HalLink.php +++ b/src/Http/Hal/HalLink.php @@ -5,7 +5,7 @@ namespace HelpScout\Api\Http\Hal; use HelpScout\Api\Exception\RuntimeException; -use QL\UriTemplate\UriTemplate; +use Rize\UriTemplate; class HalLink { @@ -77,6 +77,6 @@ public function expand(array $params): string throw new RuntimeException(sprintf('The link "%s" is not templated', $this->getRel())); } - return (new UriTemplate($this->getHref()))->expand($params); + return (new UriTemplate)->expand($this->getHref(), $params); } }