Skip to content

Commit

Permalink
Fix for PHP8 errors (#81) and readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-zahariev committed Feb 17, 2021
1 parent ec044de commit 5ceeafb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
8 changes: 4 additions & 4 deletions src/SimpleEmailService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
*/
Expand Down Expand Up @@ -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) {
Expand All @@ -157,7 +157,7 @@ public function setRequestSignatureVersion($requestSignatureVersion) {

/**
* @return string
*
*
* @deprecated Not relevant when only V4 is supported.
*/
public function getRequestSignatureVersion() {
Expand Down
8 changes: 4 additions & 4 deletions src/SimpleEmailServiceMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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;
}

Expand Down
4 changes: 2 additions & 2 deletions src/SimpleEmailServiceRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 5ceeafb

Please sign in to comment.