Skip to content

Fix PHP 8.4 deprecation: explicit nullable type required#21

Open
roboes wants to merge 1 commit intokiboit:masterfrom
roboes:master
Open

Fix PHP 8.4 deprecation: explicit nullable type required#21
roboes wants to merge 1 commit intokiboit:masterfrom
roboes:master

Conversation

@roboes
Copy link

@roboes roboes commented Feb 5, 2026

Description

This PR resolves the PHP 8.4 deprecation warning: "Implicitly marking parameter as nullable is deprecated".

I have updated function signatures where a type hint is used with a null default value to use the explicit ?Type syntax.

Compatibility

  • PHP 7.4+ Compatible: Uses nullable syntax supported since PHP 7.1.
  • Syntax Only: No changes to logic or functionality.
  • Future-proof: Ensures clean logs for users on PHP 8.4+ without breaking older environments.

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