diff --git a/README.md b/README.md index 9da279b..5bffb91 100644 --- a/README.md +++ b/README.md @@ -229,6 +229,9 @@ $ses = new SimpleEmailService('AccessKey', 'SecretKey', $region_endpoint, $trigg ### Changelog +v.0.9.4 +* Fix for PHP8 errors (#81) + v.0.9.3 * AWS Signature Version 4 is the default one (thanks to [VincentNikkelen](https://github.com/VincentNikkelen)) diff --git a/src/SimpleEmailService.php b/src/SimpleEmailService.php index 6549868..67bccf6 100644 --- a/src/SimpleEmailService.php +++ b/src/SimpleEmailService.php @@ -46,7 +46,7 @@ * * @link https://github.com/daniel-zahariev/php-aws-ses * @package AmazonSimpleEmailService -* @version v0.9.1 +* @version v0.9.4 */ class SimpleEmailService { @@ -67,7 +67,7 @@ class SimpleEmailService const AWS_US_EAST_2 = 'email.us-east-2.amazonaws.com'; const AWS_US_GOV_WEST_1 = 'email.us-gov-west-1.amazonaws.com'; const AWS_US_WEST_2 = 'email.us-west-2.amazonaws.com'; - + /** * Deprecated, available for backward compatibility */ @@ -146,7 +146,7 @@ public function __construct($accessKey = null, $secretKey = null, $host = self:: * * @param string $requestSignatureVersion Value is ignored and V4 is used. This for BW compatibility. * @return SimpleEmailService $this - * + * * @deprecated Currently only V4 supported. */ public function setRequestSignatureVersion($requestSignatureVersion) { @@ -157,7 +157,7 @@ public function setRequestSignatureVersion($requestSignatureVersion) { /** * @return string - * + * * @deprecated Not relevant when only V4 is supported. */ public function getRequestSignatureVersion() { diff --git a/src/SimpleEmailServiceMessage.php b/src/SimpleEmailServiceMessage.php index b3539a7..29d2a31 100644 --- a/src/SimpleEmailServiceMessage.php +++ b/src/SimpleEmailServiceMessage.php @@ -4,7 +4,7 @@ * * @link https://github.com/daniel-zahariev/php-aws-ses * @package AmazonSimpleEmailService - * @version v0.9.1 + * @version v0.9.4 */ final class SimpleEmailServiceMessage { @@ -63,15 +63,15 @@ public function addTo($to) { return $this; } - + /** * @return SimpleEmailServiceMessage $this */ public function setTo($to) { $this->to = (array) $to; - + $this->is_clean = false; - + return $this; } diff --git a/src/SimpleEmailServiceRequest.php b/src/SimpleEmailServiceRequest.php index 430bdb7..fa0d530 100644 --- a/src/SimpleEmailServiceRequest.php +++ b/src/SimpleEmailServiceRequest.php @@ -4,7 +4,7 @@ * * @link https://github.com/daniel-zahariev/php-aws-ses * @package AmazonSimpleEmailService -* @version v0.9.1 +* @version v0.9.4 */ class SimpleEmailServiceRequest { @@ -253,7 +253,7 @@ public function __destruct() { * @param string $data Data * @return integer */ - private function __responseWriteCallback(&$curl, &$data) { + private function __responseWriteCallback($curl, $data) { if (!isset($this->response->body)) { $this->response->body = $data; } else {