Skip to content

fix: Resolve nullable parameter deprecation issue in PHP 8.4 - #925

Merged
DenverCoder1 merged 1 commit into
mainfrom
fix-Resolve-nullable-parameter-deprecation-issue-in-PHP-8.4
Jul 26, 2026
Merged

fix: Resolve nullable parameter deprecation issue in PHP 8.4#925
DenverCoder1 merged 1 commit into
mainfrom
fix-Resolve-nullable-parameter-deprecation-issue-in-PHP-8.4

Conversation

@DenverCoder1

Copy link
Copy Markdown
Owner

Description

This pull request makes minor improvements to function signatures in src/card.php by updating parameter type hints for better type safety and clarity. Specifically, it changes the default type of optional array parameters from array $params = null to ?array $params = null in several functions. No functional behavior is changed.

Type of change

  • Bug fix (added a non-breaking change which fixes an issue)
  • New feature (added a non-breaking change which adds functionality)
  • Updated documentation (updated the readme, templates, or other repo files)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

  • Tested locally with a valid username
  • Tested locally with an invalid username
  • Ran tests with composer test
  • Added or updated test cases to test new features

Checklist:

  • I have checked to make sure no other pull requests are open for this issue
  • The code is properly formatted and is consistent with the existing code style
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Screenshots

@DenverCoder1
DenverCoder1 temporarily deployed to streak-stats-fix-resolv-pi2gbe July 26, 2026 13:25 Inactive
@DenverCoder1
DenverCoder1 merged commit 68946be into main Jul 26, 2026
4 checks passed
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