• henning22

    (@henning22)


    Hello!
    There is a deprecation notice for php8.4:

    PHP Deprecated: Firebase\JWT\JWT::encode(): Implicitly marking parameter $keyId as nullable is deprecated, the explicit nullable type must be used instead in WP_ROOT/wp-content/plugins/jwt-authentication-for-wp-rest-api/includes/vendor/firebase/php-jwt/src/JWT.php on line 183

    The same issue is marked as closed in the GitHub repository firebase/php-jwt, see https://github.com/firebase/php-jwt/issues/570

    An additional message is:

    PHP Deprecated: Firebase\JWT\JWT::encode(): Implicitly marking parameter $head as nullable is deprecated, the explicit nullable type must be used instead in WP_ROOT/wp-content/plugins/jwt-authentication-for-wp-rest-api/includes/vendor/firebase/php-jwt/src/JWT.php on line 183

    Please have a look and see if a vendor update may solve the problem.

    Best regards,
    Henning

    • This topic was modified 9 months ago by henning22.
    • This topic was modified 9 months ago by henning22.
Viewing 1 replies (of 1 total)
  • Thread Starter henning22

    (@henning22)

    Please do a vendor update, the problem is solved in https://github.com/firebase/php-jwt. The correct declaration for the method “encode” should be:

        public static function encode(
            array $payload,
            #[\SensitiveParameter] $key,
            string $alg,
            ?string $keyId = null,
            ?array $head = null
        ): string {

Viewing 1 replies (of 1 total)

The topic ‘Deprecation’ is closed to new replies.