Skip to content

Full PHP 8.4 compatibility

Latest

Choose a tag to compare

@ewood-ac ewood-ac released this 11 Jul 11:45
· 2 commits to main since this release
f0a53b7

The effort here is to fully support php 8.4 and get rid of deprecation warnings.

Changed

  • Upgraded PHPUnit from ^9 to ^10.0 for better PHP 8.4 compatibility
  • Updated PHPDoc type annotations to match actual method signatures
  • Fixed all implicit nullable parameter deprecation warnings in PHP 8.4

Fixed

  • Resolved 20+ PHP 8.4 deprecation warnings related to implicit nullable parameters
  • Fixed PHPStan static analysis issues with type mismatches
  • Corrected return type declaration for processRestRequest() method

Technical Details

  • Updated PostmarkAdminClient.php - Fixed 15+ method parameters with explicit nullable types
  • Updated PostmarkAttachment.php - Fixed constructor and static method parameters
  • Updated WebhookConfiguration.php and WebhookConfigurationTriggers.php - Fixed nullable parameters
  • Updated various model classes with proper nullable type declarations
  • All tests pass on PHP 8.1, 8.2, 8.3, and 8.4
  • Zero deprecation warnings on PHP 8.4

Upgrade Warning

  • Many nullable updates for methods. There is a chance this will create work
    • Changed from implicit nullable (string $name = null) to explicit nullable (?string $name = null)
  • PHP Version: May require PHP 8.1+ (older versions may not be compatible)

Full Changelog: v6.1.0...v7.0.0* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *