Require PHP 7.2.24+

This commit is contained in:
Pascal Birchler 2025-05-07 12:37:45 +02:00
parent 44e61272f9
commit 410be1fd79
No known key found for this signature in database
GPG key ID: 0DECE73DD74E8B2F
4 changed files with 1951 additions and 859 deletions

View file

@ -99,8 +99,8 @@ jobs:
- php: '8.0'
wp: 'trunk'
mysql: '5.6'
- php: '5.6'
wp: '3.7'
- php: '7.2'
wp: '4.9'
mysql: '5.6'
runs-on: ubuntu-22.04
env:
@ -117,20 +117,7 @@ jobs:
sudo apt-get update
sudo apt-get install ghostscript -y
- name: Set up PHP environment (PHP 5.6 - 7.1)
if: ${{ matrix.php < '7.2' }}
uses: shivammathur/setup-php@v2
with:
php-version: '${{ matrix.php }}'
extensions: imagick, mysql, zip
coverage: none
tools: composer:2.2
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up PHP environment (PHP 7.2+)
if: ${{ matrix.php >= '7.2' }}
- name: Set up PHP environment
uses: shivammathur/setup-php@v2
with:
php-version: '${{ matrix.php }}'

View file

@ -8,7 +8,7 @@
"homepage": "https://wp-cli.org",
"license": "MIT",
"require": {
"php": ">=5.6",
"php": ">=7.2.24",
"wp-cli/cache-command": "^2",
"wp-cli/checksum-command": "^2.1",
"wp-cli/config-command": "^2.1",
@ -50,7 +50,7 @@
"johnpbloch/wordpress-core-installer": true
},
"platform": {
"php": "5.6"
"php": "7.2.24"
},
"process-timeout": 7200,
"sort-packages": true

2785
composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -38,7 +38,7 @@
<!-- For help understanding the `testVersion` configuration setting:
https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions -->
<config name="testVersion" value="5.6-"/>
<config name="testVersion" value="7.2-"/>
<!--
#############################################################################