From daf0dfaabe8e86298313bed802fa5dba327acef6 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 11 Oct 2021 01:20:21 +0200 Subject: [PATCH] PHP 8.1: fix Phar building For the time being, until box-project/box#567 has been fixed: 1. Disable the addition of the requirement checker from Box as the version included in the last release of Box is not compatible with PHP 8.1. 2. Change the PHP version used to generate the Phar to PHP 8.0 to get round the problem the PHP compactor has with attributes. Note: the generated Phar file should still be compatible with all supported PHP versions. --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 2 +- box.json | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d1a7d22..4fbe2f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 7.3 + php-version: 8.0 extensions: exif, phar, openssl coverage: none ini-values: phar.readonly=Off diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2d24701..697a4e3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,7 +45,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 7.3 + php-version: 8.0 extensions: exif, phar, openssl coverage: none ini-values: phar.readonly=Off, error_reporting=E_ALL, display_errors=On diff --git a/box.json b/box.json index 0e853cb..0bb609c 100644 --- a/box.json +++ b/box.json @@ -2,6 +2,7 @@ "base-path": null, "output": "parallel-lint.phar", "chmod": "0755", + "check-requirements": false, "compactors": [ "KevinGH\\Box\\Compactor\\Php" ],