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
560 stars 161 forks source link

PHP deprecated warning (from Firebase PHP-JWT package) #277

Open RobWebFX opened 1 year ago

RobWebFX commented 1 year ago

Hi!

When we switched to PHP 8.2, we started seeing the following PHP notices and warnings: PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /xyz/xyz/public_html/wp-content/plugins/jwt-authentication-for-wp-rest-api/includes/vendor/firebase/php-jwt/src/JWT.php on line 139

It looks like this was updated in Firebase PHP-JWT here in their 6.4.0 release: https://github.com/firebase/php-jwt/blob/main/src/JWT.php#L144.

When you have a chance, could you update this dependency in the plugin?

Thanks!