-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Description
Hi @nickdnk and contributors,
I am currently using the latest version of php-graph-sdk (v7.0.1), and when running the library with PHP 8.4, I encountered several warnings related to implicitly marking parameters as nullable, which has been deprecated in PHP 8.4.
Specifically, I received the following deprecation warnings:
Deprecated: Facebook\FacebookClient::__construct(): Implicitly marking parameter $httpClientHandler as nullable is deprecated, the explicit nullable type must be used instead in /vendor/nickdnk/graph-sdk/src/Facebook/FacebookClient.php on line 95
Deprecated: Facebook\HttpClients\FacebookGuzzleHttpClient::__construct(): Implicitly marking parameter $guzzleClient as nullable is deprecated, the explicit nullable type must be used instead in /vendor/nickdnk/graph-sdk/src/Facebook/HttpClients/FacebookGuzzleHttpClient.php on line 44
Deprecated: Facebook\Helpers\FacebookRedirectLoginHelper::__construct(): Implicitly marking parameter $persistentDataHandler as nullable is deprecated, the explicit nullable type must be used instead in /vendor/nickdnk/graph-sdk/src/Facebook/Helpers/FacebookRedirectLoginHelper.php on line 75
Deprecated: Facebook\Helpers\FacebookRedirectLoginHelper::__construct(): Implicitly marking parameter $urlHandler as nullable is deprecated, the explicit nullable type must be used instead in /vendor/nickdnk/graph-sdk/src/Facebook/Helpers/FacebookRedirectLoginHelper.php on line 75
These issues occur because PHP 8.4 requires nullable types to be explicitly declared using ?Type instead of relying on implicit inference by the interpreter.
Would you consider updating the library to support PHP 8.4 in an upcoming release?
Thank you for maintaining such an excellent library!
Metadata
Metadata
Assignees
Labels
No labels