Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hijdena opened this issue Nov 25, 2024 · 0 comments · May be fixed by #225
Open

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

hijdena opened this issue Nov 25, 2024 · 0 comments · May be fixed by #225

Comments

@hijdena
Copy link

hijdena commented Nov 25, 2024

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');
@RV7PR RV7PR linked a pull request Jan 27, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant