Skip to content

Commit

Permalink
Merge pull request #304 from ryancco/update-deps
Browse files Browse the repository at this point in the history
Replace ql/uri-template Dependency
  • Loading branch information
bkuhl authored Feb 23, 2023
2 parents 2a49a96 + 229737f commit b55a9b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Hal/HalLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace HelpScout\Api\Http\Hal;

use HelpScout\Api\Exception\RuntimeException;
use QL\UriTemplate\UriTemplate;
use Rize\UriTemplate;

class HalLink
{
Expand Down Expand Up @@ -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);
}
}

0 comments on commit b55a9b6

Please sign in to comment.