Skip to content

Commit

Permalink
Updating workflows, composer, and client
Browse files Browse the repository at this point in the history
  • Loading branch information
JustSteveKing committed Dec 22, 2023
1 parent 355880b commit 2824e9c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [ 8.0, 8.1 ]
php: [ 8.3 ]

name: PHP ${{ matrix.php }} on Linux

steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, http
extensions: dom, curl, json, libxml, mbstring, zip, http
tools: composer:v2
coverage: none

Expand All @@ -37,7 +37,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [ 8.0, 8.1 ]
php: [ 8.3 ]

name: PHP ${{ matrix.php }} on Windows

Expand All @@ -48,13 +48,13 @@ jobs:
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, http
extensions: dom, curl, json, libxml, mbstring, zip, http
tools: composer:v2
coverage: none
ini-values: memory_limit=512M
Expand Down
21 changes: 10 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,33 +25,32 @@
],
"require": {
"php": "^8.3",
"crell/serde": "^1.0",
"ext-json": "*",
"crell/serde": "^1.0.1",
"juststeveking/sdk-tools": "^0.0.5",
"league/object-mapper": "dev-main",
"nyholm/psr7": "^1.8",
"php-http/client-common": "^2.7",
"php-http/discovery": "^1.19",
"psr/http-client": "^1.0",
"nyholm/psr7": "^1.8.1",
"php-http/client-common": "^2.7.1",
"php-http/discovery": "^1.19.2",
"psr/http-client": "^1.0.3",
"psr/http-client-implementation": "*",
"psr/http-factory-implementation": "*",
"psr/http-message": "^2.0",
"ramsey/collection": "^2.0",
"symfony/http-client": "^7.0"
},
"require-dev": {
"laravel/pint": "^1.13",
"laravel/pint": "^1.13.7",
"php-http/mock-client": "^1.6",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.5",
"phpstan/phpstan": "^1.10.50",
"phpunit/phpunit": "^10.5.3",
"rector/rector": "^0.18.13",
"roave/security-advisories": "dev-latest"
},
"provide": {
"psr-discovery/http-client-implementations": "^1.0"
},
"suggest": {

},
"suggest": {},
"autoload": {
"psr-4": {
"JustSteveKing\\Sdk\\": "src/"
Expand Down
3 changes: 2 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ abstract class Client implements ClientContract
public function __construct(
protected readonly string $apiToken,
protected readonly string $url,
) {}
) {
}

/**
* Set up the client using PSR-18 discovery, passing in plugins.
Expand Down

0 comments on commit 2824e9c

Please sign in to comment.