Skip to content

fix deprecation error on PHP 8.4#17

Open
tenzap wants to merge 1 commit into
datto:masterfrom
tenzap:patch
Open

fix deprecation error on PHP 8.4#17
tenzap wants to merge 1 commit into
datto:masterfrom
tenzap:patch

Conversation

@tenzap

@tenzap tenzap commented Feb 7, 2025

Copy link
Copy Markdown

Implicitly marking parameter $arguments as nullable is deprecated, the explicit nullable type must be used instead

Implicitly marking parameter $arguments as nullable is deprecated, the explicit nullable type must be used instead
Comment thread src/Client.php

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn’t you just be adding ?array

@tenzap tenzap Feb 8, 2025

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC doing how I did permits to keep compatibility with PHP 5.6 & 7.0 (the syntax you suggest is valid since 7.1 only)

@francislavoie

Copy link
Copy Markdown

@smortensen could we get this merged?

I think bumping the minimum to PHP 7.1 and using ?array would be valid as well.

@RLHawk1

RLHawk1 commented Oct 20, 2025

Copy link
Copy Markdown

I contacted the original developer of this, and he doesn't have access to merge any pull requests. So my company has forked this and plans to maintain it going forward. You can use it at https://github.com/hcs-llc/php-json-rpc-http

@tenzap

tenzap commented Oct 21, 2025

Copy link
Copy Markdown
Author

Thanks. Do you also plan to release to packagist.org ? What's the authors point of view on that?

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 this pull request may close these issues.

4 participants