Skip to content

Fix PHP 8.4 deprecations#25

Open
daniloalvess wants to merge 2 commits into
masterfrom
fix/deprecation-notices-php-84
Open

Fix PHP 8.4 deprecations#25
daniloalvess wants to merge 2 commits into
masterfrom
fix/deprecation-notices-php-84

Conversation

@daniloalvess
Copy link
Copy Markdown
Contributor

@daniloalvess daniloalvess commented May 12, 2026

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added/updated (for bug fixes/features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

PHP 8.4 deprecates implicitly nullable types. PHP applications are recommended to explicitly declare the type as nullable. All type declarations that have a default value of null, but without declaring null in the type declaration, emit a deprecation notice.

What is the current behavior? (You can also link to an open issue here)

It produces a deprecation notice.

What is the new behavior (if this is a feature change)?

The deprecation notice should be gone.

Other information

https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated

@daniloalvess daniloalvess force-pushed the fix/deprecation-notices-php-84 branch from 254c6c9 to 1ac107e Compare May 12, 2026 20:23
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