Skip to content

Commit

Permalink
Added support php8.3|8.4 (#11)
Browse files Browse the repository at this point in the history
* added support php 8.3|8.4
  • Loading branch information
pvsaintpe authored May 2, 2024
1 parent 8a09e95 commit 61c38df
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:

env:
php_extensions: 'dom, iconv, intl, json, mbstring, opcache, pcntl, pcov, session, simplexml, xml, zip'
php_extensions: 'dom, iconv, intl, json, mbstring, opcache, pcntl, pcov, session, simplexml, xml, zip, xdebug'
key: cache-v0.1

jobs:
Expand All @@ -14,17 +14,17 @@ jobs:
timeout-minutes: 20
strategy:
matrix:
operating_system:
- ubuntu-latest
php_versions:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
operating_system: [ubuntu-latest]
php_versions: ['8.3']
experimental: [false]
include:
- operating_system: 'ubuntu-latest'
php_versions: '8.4'
experimental: true
fail-fast: false
env:
PHP_CS_FIXER_FUTURE_MODE: '0'
name: 'Lint PHP'
name: 'Linter / PHP ${{ matrix.php_versions }}'
steps:
- name: 'Checkout'
uses: actions/checkout@v2
Expand Down Expand Up @@ -54,7 +54,9 @@ jobs:
- name: 'Setup problem matchers for PHPUnit'
run: 'echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"'
- name: 'Install PHP dependencies with Composer'
continue-on-error: ${{ matrix.experimental }}
run: composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader
working-directory: './'
- name: 'Linting PHP source files'
continue-on-error: ${{ matrix.experimental }}
run: 'vendor/bin/ecs check --config=ecs.php .'
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
}
],
"require": {
"php": "^7.3|^7.4|^8.0|^8.1|^8.2",
"php": "^8.3|^8.4",
"ext-json": "*",
"laravel/framework": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.9",
"hemp/presenter": "^2.0 || ^3.0"
"laravel/framework": "^11.0",
"hemp/presenter": "^3.0"
},
"require-dev": {
"umbrellio/code-style-php": "^1.0",
"orchestra/testbench": "^3.5|^4.0|^5.0|^6.0|^7.0|^8.0|^9.0",
"orchestra/testbench": "^9.0",
"symplify/easy-coding-standard": "^9.3.15",
"php-coveralls/php-coveralls": "^2.1"
},
Expand Down
3 changes: 3 additions & 0 deletions src/Contracts/AbstractPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
use Illuminate\Contracts\Queue\QueueableEntity;
use JsonSerializable;

/**
* @codeCoverageIgnore
*/
class AbstractPresenter extends Presenter implements JsonSerializable, QueueableEntity
{
private $relationMapping = [];
Expand Down

0 comments on commit 61c38df

Please sign in to comment.