wp-media / imagify-plugin

Speed up your website with lighter images without losing quality.
https://imagify.io
69 stars 24 forks source link

Prevent Fatal Error on server with old php version #712

Open thomasblanchard-dev opened 1 year ago

thomasblanchard-dev commented 1 year ago

Actually, when update version 2.0 to 2.1 on a PHP 7.0 server, a fatal error occure.

The error: Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.0". You are running 7.0.33-0+deb9u12. in wp-content/plugins/imagify/vendor/composer/platform_check.php on line 24

Wordpress PHP version in the plugin file need to be changed in order to not give the user the right to download the plugin.

thomasblanchard-dev commented 1 year ago

Hi @Tabrisrp, can you give me a feedback about this please ?

Tabrisrp commented 1 year ago

Can you also do the same change in the composer file, and I'll validate the PR, thank you

thomasblanchard-dev commented 1 year ago

@Tabrisrp I've done the change in the composer file, thanks