Skip to content

Commit 927df66

Browse files
jrfnlgrogy
authored andcommitted
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.
1 parent e415b01 commit 927df66

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup PHP
2020
uses: shivammathur/setup-php@v2
2121
with:
22-
php-version: 7.3
22+
php-version: 8.0
2323
extensions: exif, phar, openssl
2424
coverage: none
2525
ini-values: phar.readonly=Off

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Setup PHP
4646
uses: shivammathur/setup-php@v2
4747
with:
48-
php-version: 7.3
48+
php-version: 8.0
4949
extensions: exif, phar, openssl
5050
coverage: none
5151
ini-values: phar.readonly=Off, error_reporting=E_ALL, display_errors=On

box.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"base-path": null,
33
"output": "parallel-lint.phar",
44
"chmod": "0755",
5+
"check-requirements": false,
56
"compactors": [
67
"KevinGH\\Box\\Compactor\\Php"
78
],

0 commit comments

Comments
 (0)