diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8947686..c9100e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -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 @@ -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 .' diff --git a/composer.json b/composer.json index e715e8e..bd22d1d 100644 --- a/composer.json +++ b/composer.json @@ -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" }, diff --git a/src/Contracts/AbstractPresenter.php b/src/Contracts/AbstractPresenter.php index 119aa68..84aab9c 100644 --- a/src/Contracts/AbstractPresenter.php +++ b/src/Contracts/AbstractPresenter.php @@ -8,6 +8,9 @@ use Illuminate\Contracts\Queue\QueueableEntity; use JsonSerializable; +/** + * @codeCoverageIgnore + */ class AbstractPresenter extends Presenter implements JsonSerializable, QueueableEntity { private $relationMapping = [];