Skip to content

Implicitly Nullable Parameter is deprecated in PHP8.4 on #224

Open
@hijdena

Description

@hijdena

Functions like
public function create($object, array $query = null)
and
public function start($object, $query = null)

seem to produce a warning in PHP8.4
PHP Deprecated: MessageBird\Resources\Conversation\Conversations::create(): Implicitly marking parameter $query as nullable is deprecated, the explicit nullable type must be used instead

which can be solved by using Explicitly Nullable Parameter, like
public function create($object, ?array $query = null)

Code to reproduce

<?php
require 'autoload.php';
$clientBird = new \MessageBird\Client('YOUR_ACCESS_KEY');

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