Tmeister / wp-api-jwt-auth

A simple plugin to add JSON Web Token (JWT) Authentication to WP REST API
GNU General Public License v2.0
549 stars 159 forks source link

Composer dependency `firebase/php-jw` require a PHP version ">= 7.1.0" #246

Closed quinncomendant closed 1 year ago

quinncomendant commented 1 year ago

The latest 1.3.0 release broke one of our sites that is hosted on a legacy PHP 5.6 server. The breaking change was when you updated firebase/php-jw to the latest version 6.3. php-jw v6.3 includes this composer requirement:

"require": {
    "php": "^7.1||^8.0"
},

This causes websites using the jwt-authentication-for-wp-rest-api plugin for WordPress and hosted on PHP 5.6 to error with Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.1.0".

This is bad because the stated requirement for wp-api-jwt-auth is Requires PHP: 5.3.0, which allows the update to v1.3.0 to occur automatically on systems that do not support it.

Either you need to update the requirements for wp-api-jwt-auth to PHP >= 7.1, or downgrade firebase/php-jw to a version that supports the stated PHP version requirement.