Skip to content

Commit dda2dad

Browse files
Enforce check of PHP >= 7.4
1 parent 2570c30 commit dda2dad

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

cloudinary.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
define( 'CLDN_CORE', __FILE__ );
3737
define( 'CLDN_PATH', plugin_dir_path( __FILE__ ) );
3838

39-
if ( version_compare( phpversion(), '5.6', '>=' ) ) {
39+
if ( version_compare( phpversion(), '7.4', '>=' ) ) {
4040
require_once __DIR__ . '/instance.php';
4141
register_activation_hook( __FILE__, array( 'Cloudinary\Utils', 'install' ) );
4242
} else { // phpcs:ignore Universal.ControlStructures.DisallowLonelyIf.Found
@@ -60,5 +60,5 @@ function php_version_error() {
6060
* @return string
6161
*/
6262
function php_version_text() {
63-
return __( 'Cloudinary plugin error: Your version of PHP is too old to run this plugin. You must be running PHP 5.6 or higher.', 'cloudinary' );
63+
return __( 'Cloudinary plugin error: Your version of PHP is too old to run this plugin. You must be running PHP 7.4 or higher.', 'cloudinary' );
6464
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"config": {
1717
"platform": {
18-
"php": "5.6.20"
18+
"php": "7.4"
1919
},
2020
"allow-plugins": {
2121
"dealerdirect/phpcodesniffer-composer-installer": true

0 commit comments

Comments
 (0)