From c59467c4468ff121cc16ba5b00c93fb43e43d81f Mon Sep 17 00:00:00 2001 From: Felipe Dalcin Date: Tue, 18 Oct 2022 15:42:46 -0400 Subject: [PATCH] chore: php 8 support (#28) * chore: add php 8 support * chore: update pipeline --- .github/workflows/.pipeline.yml | 16 ++++++++-------- composer.json | 9 +++++---- composer.lock | 9 +++------ 3 files changed, 16 insertions(+), 18 deletions(-) diff --git a/.github/workflows/.pipeline.yml b/.github/workflows/.pipeline.yml index 23d2c5e..9588ab3 100644 --- a/.github/workflows/.pipeline.yml +++ b/.github/workflows/.pipeline.yml @@ -13,15 +13,15 @@ jobs: strategy: fail-fast: false matrix: - php: [ 7.4 ] + php: [ 7.4, 8.0 ] os: [ ubuntu-20.04 ] - wordpress: [ '6.0', latest ] - experimental: [ false ] + wordpress: [ 6.0.2, latest ] include: - - php: 8.0 - os: ubuntu-20.04 - wordpress: latest - experimental: true + - experimental: true + - experimental: false + php: 8.0 + wordpress: 6.0.2 + name: Test - PHP ${{ matrix.php }} - WP ${{ matrix.wordpress }} steps: @@ -71,4 +71,4 @@ jobs: uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} - if: matrix.experimental == false \ No newline at end of file + if: matrix.experimental == false diff --git a/composer.json b/composer.json index 6a8824d..e9b5146 100644 --- a/composer.json +++ b/composer.json @@ -20,12 +20,13 @@ "docs": "https://github.com/pressbooks/pressbooks-stats/wiki" }, "config": { - "platform": { - "php": "7.4" - } + "allow-plugins": { + "composer/installers": true, + "dealerdirect/phpcodesniffer-composer-installer": true + } }, "require": { - "php": ">=7.4", + "php": "^7.4|8.0.*", "composer/installers": "^2", "phpcompatibility/php-compatibility": "^9.3" }, diff --git a/composer.lock b/composer.lock index 4c47767..c075737 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "3ec0bb867cd623718b7da1860c109e0f", + "content-hash": "9628e7866d18ca4bf66e0fee87992428", "packages": [ { "name": "composer/installers", @@ -2657,11 +2657,8 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": ">=7.4" + "php": "^7.4|8.0.*" }, "platform-dev": [], - "platform-overrides": { - "php": "7.4" - }, - "plugin-api-version": "1.1.0" + "plugin-api-version": "2.3.0" }