Skip to content

Commit 2e7e0f4

Browse files
bump required PHP version to 7.2
1 parent 62a3eee commit 2e7e0f4

File tree

5 files changed

+1037
-1025
lines changed

5 files changed

+1037
-1025
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
#### Development
5+
6+
- Bump required PHP version to 7.2.
7+
8+
49
#### 4.9.17 - Sep 17, 2024
510

611
- Fix compatibility with WooCommerce versions 8.5 to 8.8 because of private method that was later made public.

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ MC4WP: Mailchimp for WordPress
99

1010
Here, you can browse the source code of the [MC4WP: Mailchimp for WordPress Plugin](https://wordpress.org/plugins/mailchimp-for-wp/), find and discuss open issues or contribute code to the plugin.
1111

12+
Requirements
13+
--------------
14+
15+
- PHP version 7.2 or higher
16+
- WordPress version 4.6 or higher
17+
18+
1219
Installation
1320
------------
1421

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"source": "https://github.com/ibericode/mailchimp-for-wordpress"
1919
},
2020
"require": {
21-
"php": ">=5.6"
21+
"php": ">=7.2"
2222
},
2323
"require-dev": {
2424
"phpunit/phpunit": "^9.0",

mailchimp-for-wp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ function _mc4wp_load_plugin()
4141
return;
4242
}
4343

44-
// don't run if PHP version is lower than 5.6
45-
if (PHP_VERSION_ID < 50600) {
44+
// don't run if PHP version is lower than 7.2.0
45+
if (PHP_VERSION_ID < 70200) {
4646
return;
4747
}
4848

0 commit comments

Comments
 (0)