Skip to content

Commit c9f6a72

Browse files
authored
support php 8.3, 8.4 and move test file to pest syntax (#7)
1 parent 2304880 commit c9f6a72

File tree

6 files changed

+159
-223
lines changed

6 files changed

+159
-223
lines changed

.github/workflows/testing.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,17 @@ on:
1212
jobs:
1313
test:
1414
runs-on: ubuntu-22.04
15+
strategy:
16+
matrix:
17+
php-version: ['8.2', '8.3', '8.4']
1518

1619
steps:
1720
- uses: actions/checkout@v4
1821

1922
- name: Setup PHP
2023
uses: shivammathur/setup-php@v2
2124
with:
22-
php-version: '8.2'
25+
php-version: ${{ matrix.php-version }}
2326
extensions: zip, sqlite3, http
2427
coverage: none
2528

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Once you call one of the API endpoints which return a response, you can no longe
4646
**Another way to define your Client Class**
4747

4848
You can bind your Client class at runtime in the AppServiceProvider. Allowing you to simply define the Client
49-
in the constructor of your class, without having to constantly pass the api credentials.
49+
on the container (via the constructor of a class in Laravel), without having to constantly pass the api credentials.
5050
```php
5151
$this->app->bind(OddsClient::class, function () {
5252
return new OddsClient(config('odds-api.api_key'));

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"authors": [
1212
{
1313
"name": "Seth Sharp",
14-
"homepage": "https://www.sethsharpportfolio.com/",
14+
"homepage": "https://sethsharp.dev",
1515
"role": "Maintainer, Developer"
1616
}
1717
],
1818
"require": {
19-
"php": "^8.2",
19+
"php": "^8.2 | ^8.3 | ^8.4",
2020
"guzzlehttp/guzzle": "^7.8",
2121
"nesbot/carbon": "^3.7"
2222
},

tests/Pest.php

Lines changed: 0 additions & 45 deletions
This file was deleted.

tests/Unit/OddsClientTest.php

Lines changed: 0 additions & 174 deletions
This file was deleted.

0 commit comments

Comments
 (0)