Skip to content

Commit

Permalink
fix: use new uri template lib (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev authored Mar 14, 2024
1 parent 1814c3c commit 425f2e1
Show file tree
Hide file tree
Showing 10 changed files with 81 additions and 94 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
key: cache-v1 # can be any string, change to clear the extension cache.
strategy:
matrix:
php-versions: ['8.1', '8.2']
php-versions: ['8.1', '8.2', '8.3']
experimental: [ false ]
include:
- php-versions: 8.3
- php-versions: '8.4'
experimental: true
steps:
- name: Checkout
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
key: cache-v1 # can be any string, change to clear the extension cache.
strategy:
matrix:
php-versions: ['8.2']
php-versions: ['8.3']
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@
],
"require": {
"php": "^8.1",
"ql/uri-template": "~1.0",
"vanilla/garden-cli": "~4.0",
"michelf/php-markdown": "~2.0",
"lukasoppermann/http-status": "~4.0",
"ext-json": "*",
"ext-curl": "*",
"twig/twig": "^3.0",
"twig/markdown-extra": "^3.0",
"matthiasmullie/minify": "^1.3"
"matthiasmullie/minify": "^1.3",
"rize/uri-template": "*"
},
"require-dev": {
"lunr/halo": "dev-master",
"phpunit/phpunit": "~10.2",
"lunr/halo": "~0.8.0",
"phpunit/phpunit": "~10.0",
"theseer/autoload": "~1.0",
"phing/phing": "~2.0",
"phpstan/phpstan": "^1.2.0",
Expand Down
138 changes: 66 additions & 72 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions src/PHPDraft/Model/HTTPRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

use PHPDraft\Model\Elements\RequestBodyElement;
use PHPDraft\Model\Elements\StructureElement;
use QL\UriTemplate\Exception;

class HTTPRequest implements Comparable
{
Expand Down Expand Up @@ -179,8 +178,6 @@ public function get_id(): string
* @param string $base_url URL to the base server
* @param array<string> $additional Extra options to pass to cURL
*
* @throws Exception
*
* @return string An executable cURL command
*/
public function get_curl_command(string $base_url, array $additional = []): string
Expand Down
Loading

0 comments on commit 425f2e1

Please sign in to comment.