Skip to content

Commit

Permalink
Merge pull request #1 from imbue/php-7.3-8
Browse files Browse the repository at this point in the history
Added support for php 7.3 and 8.0
  • Loading branch information
imbue authored Sep 28, 2021
2 parents f329b59 + a2e216e commit 7f81f6b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,18 @@ on:

jobs:
tests:
runs-on: ubuntu-latest

runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '7.2', '7.3', '8.0' ]
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v2
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}l
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
- name: Execute tests
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
}
],
"require": {
"php": "^7.2",
"guzzlehttp/guzzle": "^6.3",
"php": "^7.2 || ^7.3 || ^8.0",
"guzzlehttp/guzzle": "^6.3 || ^7.0",
"ext-json": "*"
},
"require-dev": {
"phpunit/phpunit": "^5.7 || ^6.5 || ^7.1"
"phpunit/phpunit": "^5.7 || ^6.5 || ^7.1 || ^9"
},
"config": {
"sort-packages": true
Expand Down
2 changes: 1 addition & 1 deletion tests/ApiClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ApiClientTest extends TestCase
/** @var WeFact */
private $weFact;

protected function setUp()
protected function setUp(): void
{
parent::setUp();
$this->guzzleClient = $this->createMock(Client::class);
Expand Down

0 comments on commit 7f81f6b

Please sign in to comment.