Skip to content

Commit 425f2e1

Browse files
authored
fix: use new uri template lib (#567)
1 parent 1814c3c commit 425f2e1

File tree

10 files changed

+81
-94
lines changed

10 files changed

+81
-94
lines changed

.github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
key: cache-v1 # can be any string, change to clear the extension cache.
1717
strategy:
1818
matrix:
19-
php-versions: ['8.1', '8.2']
19+
php-versions: ['8.1', '8.2', '8.3']
2020
experimental: [ false ]
2121
include:
22-
- php-versions: 8.3
22+
- php-versions: '8.4'
2323
experimental: true
2424
steps:
2525
- name: Checkout
@@ -95,7 +95,7 @@ jobs:
9595
key: cache-v1 # can be any string, change to clear the extension cache.
9696
strategy:
9797
matrix:
98-
php-versions: ['8.2']
98+
php-versions: ['8.3']
9999
steps:
100100
- name: Checkout
101101
uses: actions/checkout@v4

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@
1919
],
2020
"require": {
2121
"php": "^8.1",
22-
"ql/uri-template": "~1.0",
2322
"vanilla/garden-cli": "~4.0",
2423
"michelf/php-markdown": "~2.0",
2524
"lukasoppermann/http-status": "~4.0",
2625
"ext-json": "*",
2726
"ext-curl": "*",
2827
"twig/twig": "^3.0",
2928
"twig/markdown-extra": "^3.0",
30-
"matthiasmullie/minify": "^1.3"
29+
"matthiasmullie/minify": "^1.3",
30+
"rize/uri-template": "*"
3131
},
3232
"require-dev": {
33-
"lunr/halo": "dev-master",
34-
"phpunit/phpunit": "~10.2",
33+
"lunr/halo": "~0.8.0",
34+
"phpunit/phpunit": "~10.0",
3535
"theseer/autoload": "~1.0",
3636
"phing/phing": "~2.0",
3737
"phpstan/phpstan": "^1.2.0",

composer.lock

+66-72
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/PHPDraft/Model/HTTPRequest.php

-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
use PHPDraft\Model\Elements\RequestBodyElement;
1616
use PHPDraft\Model\Elements\StructureElement;
17-
use QL\UriTemplate\Exception;
1817

1918
class HTTPRequest implements Comparable
2019
{
@@ -179,8 +178,6 @@ public function get_id(): string
179178
* @param string $base_url URL to the base server
180179
* @param array<string> $additional Extra options to pass to cURL
181180
*
182-
* @throws Exception
183-
*
184181
* @return string An executable cURL command
185182
*/
186183
public function get_curl_command(string $base_url, array $additional = []): string

0 commit comments

Comments
 (0)