GitHub

Release list

Full PHP 8.4 compatibility

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 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Now Supports PHP 8.4

What's Changed

  • Updated php version to use 8.4 - thanks to @joelharkes
  • Updated MessageEvents to check it's set before accessing - thanks to @TristanPouliquen
  • Added ReceivedAt on the click and open message events - thanks to @tysonlist
  • Updated a couple of unit tests
  • Addressed issue #153 (double nesting message events)
  • Addressed issue #155 (reply can now be string or array)

New Contributors (ordered by pull request number)

Full Changelog: v6.0.9...v6.1.0 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Allow array syntax to sendEmail() or sendEmailWithTemplate() methods

Fix to allow sendemail or sendEmailWithTemplate to use a string or array for the from, cc, or bcc. Big shout out to Chris Smith as the author of this release.

issue #137
files changed

Include optional parameter when creating sender signature

v6.0.7: Issue 129 (#130)

Fix for null headers

We should allow "null" for the setHeaders function.

#128

Better Exception Handling

An attempt to fix some issues that are not handled gracefully.

It seems as though on occasion there is an issue within the exception handling. This tries to solve that.

Fix return type for suppression list

Move classes to own file - per PSR4

#124

Small change to ensure we are following PSR4.

Issue Fixes

Read the original on github.com ↗