Skip to content

Fix PHP 8.4 deprecation: Implicitly marking parameter as nullable is deprecatedΒ #11

@toddb02

Description

@toddb02

[2025-07-28 21:20:09] local.WARNING: Sendbird\Api\UserApi::__construct(): Implicitly marking parameter $client as nullable is deprecated, the explicit nullable type must be used instead in vendor/sendbird/sendbird-platform-sdk-php/lib/Api/UserApi.php on line 79

Please fix all type-hinted method parameters accordingly.

public function __construct(
    ClientInterface $client = null,
    Configuration $config = null,
    HeaderSelector $selector = null,
    $hostIndex = 0
)...

becomes

public function __construct(
    ?ClientInterface $client = null,
    ?Configuration $config = null,
    ?HeaderSelector $selector = null,
    $hostIndex = 0
)...

This floods the logs with deprecations warnings.

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