Skip to content

Commit 61c38df

Browse files
authored
Added support php8.3|8.4 (#11)
* added support php 8.3|8.4
1 parent 8a09e95 commit 61c38df

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
pull_request:
66

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

1111
jobs:
@@ -14,17 +14,17 @@ jobs:
1414
timeout-minutes: 20
1515
strategy:
1616
matrix:
17-
operating_system:
18-
- ubuntu-latest
19-
php_versions:
20-
- '7.4'
21-
- '8.0'
22-
- '8.1'
23-
- '8.2'
17+
operating_system: [ubuntu-latest]
18+
php_versions: ['8.3']
19+
experimental: [false]
20+
include:
21+
- operating_system: 'ubuntu-latest'
22+
php_versions: '8.4'
23+
experimental: true
2424
fail-fast: false
2525
env:
2626
PHP_CS_FIXER_FUTURE_MODE: '0'
27-
name: 'Lint PHP'
27+
name: 'Linter / PHP ${{ matrix.php_versions }}'
2828
steps:
2929
- name: 'Checkout'
3030
uses: actions/checkout@v2
@@ -54,7 +54,9 @@ jobs:
5454
- name: 'Setup problem matchers for PHPUnit'
5555
run: 'echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"'
5656
- name: 'Install PHP dependencies with Composer'
57+
continue-on-error: ${{ matrix.experimental }}
5758
run: composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader
5859
working-directory: './'
5960
- name: 'Linting PHP source files'
61+
continue-on-error: ${{ matrix.experimental }}
6062
run: 'vendor/bin/ecs check --config=ecs.php .'

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
}
2222
],
2323
"require": {
24-
"php": "^7.3|^7.4|^8.0|^8.1|^8.2",
24+
"php": "^8.3|^8.4",
2525
"ext-json": "*",
26-
"laravel/framework": "^5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.9",
27-
"hemp/presenter": "^2.0 || ^3.0"
26+
"laravel/framework": "^11.0",
27+
"hemp/presenter": "^3.0"
2828
},
2929
"require-dev": {
3030
"umbrellio/code-style-php": "^1.0",
31-
"orchestra/testbench": "^3.5|^4.0|^5.0|^6.0|^7.0|^8.0|^9.0",
31+
"orchestra/testbench": "^9.0",
3232
"symplify/easy-coding-standard": "^9.3.15",
3333
"php-coveralls/php-coveralls": "^2.1"
3434
},

src/Contracts/AbstractPresenter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
use Illuminate\Contracts\Queue\QueueableEntity;
99
use JsonSerializable;
1010

11+
/**
12+
* @codeCoverageIgnore
13+
*/
1114
class AbstractPresenter extends Presenter implements JsonSerializable, QueueableEntity
1215
{
1316
private $relationMapping = [];

0 commit comments

Comments
 (0)