Skip to content

PHP 8.4 compatibility: explicit nullable parameter type#37

Open
soukicz wants to merge 1 commit into
mhujer:masterfrom
soukicz:master
Open

PHP 8.4 compatibility: explicit nullable parameter type#37
soukicz wants to merge 1 commit into
mhujer:masterfrom
soukicz:master

Conversation

@soukicz

@soukicz soukicz commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

Under PHP 8.4, an implicitly-nullable parameter (a non-nullable type with a null default) emits "Implicitly marking parameter as nullable is deprecated". Downloader's constructor declared ClientInterface $client = null, so it fires once per class compile on 8.4.

Mark the parameter explicitly nullable. The property is already documented @var ?ClientInterface, so this only makes the signature match the intent; behaviour is unchanged.

Under PHP 8.4, an implicitly-nullable parameter (a non-nullable type
with a `null` default) emits "Implicitly marking parameter as nullable
is deprecated". Downloader's constructor declared `ClientInterface
$client = null`, so it fires once per class compile on 8.4.

Mark the parameter explicitly nullable. The property is already
documented `@var ?ClientInterface`, so this only makes the signature
match the intent; behaviour is unchanged.
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.

1 participant