From a95683d29bbd7ccf6467f0df84a13487268aebd3 Mon Sep 17 00:00:00 2001 From: Gabriel de Tassigny Date: Tue, 10 Feb 2026 08:43:08 +0100 Subject: [PATCH 1/3] Remove PHP version 5.6 from CI Cloudinary isn't officially supporting PHP 5.6 anymore --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c8656e7..dca77927 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-version: [ '5.6', '7.4', '8.3' ] + php-version: [ '7.4', '8.3' ] steps: - name: Checkout repository From 3e7f9176515d1bea8f356a21946958647a6c296e Mon Sep 17 00:00:00 2001 From: Gabriel de Tassigny Date: Tue, 10 Feb 2026 09:05:28 +0100 Subject: [PATCH 2/3] Bump supported PHP version check at runtime to 7.4 --- cloudinary.php | 4 ++-- composer.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cloudinary.php b/cloudinary.php index 828e1b2e..c45bb243 100644 --- a/cloudinary.php +++ b/cloudinary.php @@ -36,7 +36,7 @@ define( 'CLDN_CORE', __FILE__ ); define( 'CLDN_PATH', plugin_dir_path( __FILE__ ) ); -if ( version_compare( phpversion(), '5.6', '>=' ) ) { +if ( version_compare( phpversion(), '7.4', '>=' ) ) { require_once __DIR__ . '/instance.php'; register_activation_hook( __FILE__, array( 'Cloudinary\Utils', 'install' ) ); } else { // phpcs:ignore Universal.ControlStructures.DisallowLonelyIf.Found @@ -60,5 +60,5 @@ function php_version_error() { * @return string */ function php_version_text() { - 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' ); + 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' ); } diff --git a/composer.json b/composer.json index 3200737a..bf0f95ba 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ }, "config": { "platform": { - "php": "5.6.20" + "php": "7.4" }, "allow-plugins": { "dealerdirect/phpcodesniffer-composer-installer": true From 2b2d5e9abd89dc4dbf44b3394cf5f6fc0db55306 Mon Sep 17 00:00:00 2001 From: Gabriel de Tassigny Date: Wed, 11 Feb 2026 09:02:27 +0100 Subject: [PATCH 3/3] Revert "Bump supported PHP version check at runtime to 7.4" This reverts commit 3e7f9176515d1bea8f356a21946958647a6c296e. --- cloudinary.php | 4 ++-- composer.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cloudinary.php b/cloudinary.php index c45bb243..828e1b2e 100644 --- a/cloudinary.php +++ b/cloudinary.php @@ -36,7 +36,7 @@ define( 'CLDN_CORE', __FILE__ ); define( 'CLDN_PATH', plugin_dir_path( __FILE__ ) ); -if ( version_compare( phpversion(), '7.4', '>=' ) ) { +if ( version_compare( phpversion(), '5.6', '>=' ) ) { require_once __DIR__ . '/instance.php'; register_activation_hook( __FILE__, array( 'Cloudinary\Utils', 'install' ) ); } else { // phpcs:ignore Universal.ControlStructures.DisallowLonelyIf.Found @@ -60,5 +60,5 @@ function php_version_error() { * @return string */ function php_version_text() { - 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' ); + 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' ); } diff --git a/composer.json b/composer.json index bf0f95ba..3200737a 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ }, "config": { "platform": { - "php": "7.4" + "php": "5.6.20" }, "allow-plugins": { "dealerdirect/phpcodesniffer-composer-installer": true