Skip to content

PHP Deprecated Warning: Implicitly nullable $previous in OAuth2Exception #58

@ycchuang99

Description

@ycchuang99

PHP deprecated warnings when using facile-it/php-openid-client with a recent version of PHP 8.4. The warnings are related to implicitly nullable parameters in the OAuth2Exception class.

[06-Aug-2025 04:02:40 UTC] PHP Deprecated:  Facile\OpenIDClient\Exception\OAuth2Exception::fromResponse(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead in /www/vendor/facile-it/php-openid-client/src/Exception/OAuth2Exception.php on line 48
[06-Aug-2025 04:02:40 UTC] PHP Deprecated:  Facile\OpenIDClient\Exception\OAuth2Exception::fromParameters(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead in /www/vendor/facile-it/php-openid-client/src/Exception/OAuth2Exception.php on line 69
[06-Aug-2025 04:02:40 UTC] PHP Deprecated:  Facile\OpenIDClient\Exception\OAuth2Exception::__construct(): Implicitly marking parameter $previous as nullable is deprecated, the explicit nullable type must be used instead in /www/vendor/facile-it/php-openid-client/src/Exception/OAuth2Exception.php on line 84

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