Skip to content

Fix PHP 8.4 deprecations in bundled Phast SDK#23

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

Fix PHP 8.4 deprecations in bundled Phast SDK#23
roboes wants to merge 1 commit intoapeschar: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 the function signatures within sdk/phast.php (and relevant classes) where a type hint is used with a null default value to use the explicit ?Type syntax.

Implementation Note

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