Merge pull request #974 from woocommerce/pcp-918-php-72

Require PHP 7.2 or higher
This commit is contained in:
Emili Castells 2022-11-15 11:43:46 +01:00 committed by GitHub
commit dcd6c3f1ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 680 additions and 329 deletions

View file

@ -1,7 +1,7 @@
name: woocommerce-paypal-payments
type: php
docroot: .ddev/wordpress
php_version: "7.1"
php_version: "7.2"
webserver_type: apache-fpm
router_http_port: "80"
router_https_port: "443"
@ -13,7 +13,7 @@ mysql_version: ""
nfs_mount_enabled: false
mutagen_enabled: false
use_dns_when_possible: true
composer_version: "1"
composer_version: "2"
hooks:
pre-start:
- exec-host: "mkdir -p .ddev/wordpress/wp-content/plugins/${DDEV_PROJECT}"

View file

@ -7,9 +7,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.1', '7.4']
php-versions: ['7.2', '7.4', '8.1']
wc-versions: ['5.9.5', '7.1.0']
exclude:
- php-versions: 7.2
wc-versions: 7.1.0
name: PHP ${{ matrix.php-versions }}
name: PHP ${{ matrix.php-versions }} WC ${{ matrix.wc-versions }}
steps:
- uses: satackey/action-docker-layer-caching@v0.0.11
continue-on-error: true
@ -21,7 +25,7 @@ jobs:
- uses: actions/checkout@v1
- name: Configure DDEV
run: ddev config --php-version ${{ matrix.php-versions }}
run: ddev config --php-version ${{ matrix.php-versions }} --web-environment-add="WC_VERSION=${{ matrix.wc-versions }}"
- name: Start DDEV
run: ddev start

View file

@ -27,8 +27,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.1
tools: composer:v1
php-version: 7.2
- name: Fix plugin version input # Add the version number if only suffix entered
run: echo "PACKAGE_VERSION=$(sed -nE '/Version:/s/.* ([0-9.]+).*/\1/p' woocommerce-paypal-payments.php)-$PACKAGE_VERSION" >> $GITHUB_ENV

View file

@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.1', '7.2', '7.3', '7.4']
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1']
name: PHP ${{ matrix.php-versions }}
steps:
@ -17,7 +17,6 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: composer:v1
- name: Validate composer.json and composer.lock
run: composer validate

View file

@ -4,11 +4,11 @@
"description": "PayPal Commerce Platform for WooCommerce",
"license": "GPL-2.0",
"require": {
"php": "^7.1 | ^8.0",
"php": "^7.2 | ^8.0",
"ext-json": "*",
"psr/log": "^1.1",
"ralouphie/getallheaders": "^3.0",
"wikimedia/composer-merge-plugin": "^1.4",
"wikimedia/composer-merge-plugin": "^2.0",
"wp-oop/wordpress-interface": "^0.1.0-alpha1",
"dhii/versions": "^0.1.0-alpha1",
"symfony/polyfill-php80": "^1.19"
@ -77,5 +77,11 @@
],
"delete_vendor_directories": true
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"wikimedia/composer-merge-plugin": true
}
}
}

945
composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -4,7 +4,7 @@
"description": "Admin notices module for PPCP",
"license": "GPL-2.0",
"require": {
"php": "^7.1 | ^8.0",
"php": "^7.2 | ^8.0",
"dhii/module-interface": "^0.3.0-alpha1"
},
"autoload": {

View file

@ -4,7 +4,7 @@
"description": "API client module for PPCP",
"license": "GPL-2.0",
"require": {
"php": "^7.1 | ^8.0",
"php": "^7.2 | ^8.0",
"dhii/module-interface": "^0.3.0-alpha1"
},
"autoload": {

View file

@ -4,7 +4,7 @@
"description": "Button module for PPCP",
"license": "GPL-2.0",
"require": {
"php": "^7.1 | ^8.0",
"php": "^7.2 | ^8.0",
"dhii/module-interface": "^0.3.0-alpha1"
},
"autoload": {

View file

@ -4,7 +4,7 @@
"description": "Compatibility module for PPCP",
"license": "GPL-2.0",
"require": {
"php": "^7.1 | ^8.0",
"php": "^7.2 | ^8.0",
"dhii/module-interface": "^0.3.0-alpha1"
},
"autoload": {

View file

@ -4,7 +4,7 @@
"description": "Onboarding module for PPCP",
"license": "GPL-2.0",
"require": {
"php": "^7.1 | ^8.0",
"php": "^7.2 | ^8.0",
"dhii/module-interface": "^0.3.0-alpha1"
},
"autoload": {

View file

@ -4,7 +4,7 @@
"description": "Order tracking module for PPCP",
"license": "GPL-2.0",
"require": {
"php": "^7.1 | ^8.0",
"php": "^7.2 | ^8.0",
"dhii/module-interface": "^0.3.0-alpha1"
},
"autoload": {

View file

@ -4,7 +4,7 @@
"description": "Session module for PPCP",
"license": "GPL-2.0",
"require": {
"php": "^7.1 | ^8.0",
"php": "^7.2 | ^8.0",
"dhii/module-interface": "^0.3.0-alpha1"
},
"autoload": {

View file

@ -4,7 +4,7 @@
"description": "Status report module for PPCP",
"license": "GPL-2.0",
"require": {
"php": "^7.1 | ^8.0",
"php": "^7.2 | ^8.0",
"dhii/module-interface": "^0.3.0-alpha1"
},
"autoload": {

View file

@ -4,7 +4,7 @@
"description": "Subscription module for PPCP",
"license": "GPL-2.0",
"require": {
"php": "^7.1 | ^8.0",
"php": "^7.2 | ^8.0",
"dhii/module-interface": "^0.3.0-alpha1"
},
"autoload": {

View file

@ -4,7 +4,7 @@
"description": "Vaulting module for PPCP",
"license": "GPL-2.0",
"require": {
"php": "^7.1 | ^8.0",
"php": "^7.2 | ^8.0",
"dhii/module-interface": "^0.3.0-alpha1"
},
"autoload": {

View file

@ -4,7 +4,7 @@
"description": "WC gateway module for PPCP",
"license": "GPL-2.0",
"require": {
"php": "^7.1 | ^8.0",
"php": "^7.2 | ^8.0",
"dhii/module-interface": "^0.3.0-alpha1"
},
"autoload": {

View file

@ -4,7 +4,7 @@
"description": "Webhooks module for PPCP",
"license": "GPL-2.0",
"require": {
"php": "^7.1 | ^8.0",
"php": "^7.2 | ^8.0",
"dhii/module-interface": "^0.3.0-alpha1"
},
"autoload": {

View file

@ -4,7 +4,7 @@
"description": "WC logging module for PPCP",
"license": "GPL-2.0",
"require": {
"php": "^7.1 | ^8.0",
"php": "^7.2 | ^8.0",
"dhii/module-interface": "^0.3.0-alpha1"
},
"autoload": {

View file

@ -4,7 +4,7 @@
<!-- Configs -->
<config name="minimum_supported_wp_version" value="5.3" />
<config name="testVersion" value="7.1-" />
<config name="testVersion" value="7.2-" />
<!-- Rules -->
<rule ref="WooCommerce-Core" />

View file

@ -84,7 +84,7 @@ class FilePathPluginFactory implements FilePathPluginFactoryInterface {
'Description' => '',
'TextDomain' => '',
'RequiresWP' => '5.0',
'RequiresPHP' => '7.1',
'RequiresPHP' => '7.2',
),
$plugin_data
);

View file

@ -34,7 +34,7 @@ class PurchaseUnitTest extends TestCase
const CURRENCY = 'EUR';
public function setUp()
public function setUp(): void
{
parent::setUp();

View file

@ -7,7 +7,7 @@
* Author: WooCommerce
* Author URI: https://woocommerce.com/
* License: GPL-2.0
* Requires PHP: 7.1
* Requires PHP: 7.2
* WC requires at least: 3.9
* WC tested up to: 7.0
* Text Domain: woocommerce-paypal-payments