Skip to content

Deprecated Implicit Null Parameters #582

Closed
@Zykaris

Description

@Zykaris

Obviously this is pretty new, but with the general release of PHP 8.4.1 today, implicit null parameters now raise warnings. These warnings all say something similar to the following:

PHP Deprecated: Firebase\JWT\JWT::decode(): Implicitly marking parameter $headers as nullable is deprecated, the explicit nullable type must be used instead

This occurs in--at least--the following places:

  1. src\JWK.php on line 55
  2. src\JWK.php on line 96
  3. src\JWT.php on line 96
  4. src\JWT.php on line 203
  5. src\JWT.php on line 204

Once Null is added to the type-hints, the library appears to work without issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions