Skip to content

Commit 15b403e

Browse files
committed
fix: do not depend on old lib exceptions
1 parent 15d35f5 commit 15b403e

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

src/PHPDraft/Model/HTTPRequest.php

Lines changed: 0 additions & 3 deletions
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

src/PHPDraft/Model/Transition.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,6 @@ public function parse(object $object): self
153153
* @param string $base_url the URL to which the URL variables apply
154154
* @param bool $clean Get the URL without HTML
155155
*
156-
* @throws \QL\UriTemplate\Exception
157-
*
158156
* @return string HTML representation of the transition URL
159157
*/
160158
public function build_url(string $base_url = '', bool $clean = false): string
@@ -265,8 +263,6 @@ public function get_method(int $request = 0): string
265263
* @param int $key number of the request to generate for
266264
*
267265
* @return string A cURL CLI command
268-
*
269-
* @throws \QL\UriTemplate\Exception If URL parts are invalid
270266
*/
271267
public function get_curl_command(string $base_url, array $additional = [], int $key = 0): string
272268
{

0 commit comments

Comments
 (0)