Skip to content

fix: use explicit nullable types for PHP 8.4 compatibility - #309

Merged
Naoray merged 1 commit into
mollie:mainfrom
phillipfickl:fix/explicit-nullable-types
Apr 3, 2026
Merged

fix: use explicit nullable types for PHP 8.4 compatibility#309
Naoray merged 1 commit into
mollie:mainfrom
phillipfickl:fix/explicit-nullable-types

Conversation

@phillipfickl

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • Ran vendor/bin/phpunit — all 236 tests pass with 1805 assertions
  • No implicit nullable deprecation warnings remain
  • Changes are mechanical (adding ? prefix to typed parameters with = null default)

Replace all remaining implicit nullable parameter types with explicit
nullable type declarations to resolve PHP 8.4 deprecation warnings.

PR mollie#306 previously fixed src/Billable.php; this commit addresses the
remaining 13 occurrences across exception constructors, interval
generators, Invoice methods, and test helpers.
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.

2 participants