Skip to content

Commit

Permalink
Bump WooCommerce minimum required PHP version to 7.4 (#39820)
Browse files Browse the repository at this point in the history
-Change "Requires PHP":
  - In woocommerce.php
  - In readme.txt
  - In plugins/woocommerce-docs/woocommerce-docs.php
  - In packages/js/create-product-editor-block/plugin-templates/$slug.php.mustache

- Change "testVersion" in phpcs.xml:
  - In the root of the repository
  - In plugins/woocommerce
  - In plugins/woocommerce-beta-tester

- Change "require-php" and "config-platform-php" in composer.json
- Update composer.lock with more modern versions of some of the dependencies
- Remove the admin notice about the upcoming bump for PHP 7.3 users in class-wc-admin-notices.php
  • Loading branch information
Konamiman committed Aug 22, 2023
1 parent c2cbc87 commit 4876ab3
Show file tree
Hide file tree
Showing 13 changed files with 117 additions and 147 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: dev

Bump required PHP version to 7.4
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Version: {{version}}
* Requires at least: 6.2
* WC requires at least: 7.8
* Requires PHP: 7.3
* Requires PHP: 7.4
{{#author}}
* Author: {{author}}
{{/author}}
Expand Down
2 changes: 1 addition & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<!-- Configs -->
<config name="minimum_supported_wp_version" value="5.2" />
<config name="testVersion" value="7.3-" />
<config name="testVersion" value="7.4-" />

<!-- Rules -->
<rule ref="WooCommerce-Core" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: dev

Bump required PHP version to 7.4
2 changes: 1 addition & 1 deletion plugins/woocommerce-beta-tester/phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<!-- Configs -->
<config name="minimum_supported_wp_version" value="5.2" />
<config name="testVersion" value="7.3-" />
<config name="testVersion" value="7.4-" />

<!-- Rules -->
<rule ref="WooCommerce-Core" />
Expand Down
2 changes: 1 addition & 1 deletion plugins/woocommerce-docs/woocommerce-docs.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Text Domain: woocommerce-docs
* Domain Path: /i18n/languages/
* Requires at least: 6.1
* Requires PHP: 7.3
* Requires PHP: 7.4
*
* @package WooCommerce
*/
Expand Down
4 changes: 4 additions & 0 deletions plugins/woocommerce/changelog/bump-required-php-to-7.4
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: dev

Bump required PHP version to 7.4
4 changes: 2 additions & 2 deletions plugins/woocommerce/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"require": {
"php": ">=7.3",
"php": ">=7.4",
"automattic/jetpack-autoloader": "2.11.18",
"automattic/jetpack-config": "1.15.2",
"automattic/jetpack-connection": "1.51.7",
Expand Down Expand Up @@ -42,7 +42,7 @@
},
"sort-packages": true,
"platform": {
"php": "7.3"
"php": "7.4"
},
"allow-plugins": {
"automattic/jetpack-autoloader": true,
Expand Down

0 comments on commit 4876ab3

Please sign in to comment.