InvalidArgumentException(‘You cannot create a RejectedPromise with a promise
-
Hi,
The plugin raises an exception here and then in the rejectedpromise.php. This is the exception and its details:
TypeError: method_exists(): Argument #1 ($object_or_class) must be of type object|string, array given
at
(unknown method)(/wp-content/plugins/mailster-amazonses/vendor/GuzzleHttp/Promise/RejectedPromise.php:16)
11 class RejectedPromise implements \Mailster\Aws3\GuzzleHttp\Promise\PromiseInterface
12 {
13 private $reason;
14 public function __construct($reason)
15 {
16 if (method_exists($reason, ‘then’)) {
17 throw new \InvalidArgumentException(‘You cannot create a RejectedPromise with a promise.’);
18 }
19 $this->reason = $reason;
20 }
- The topic ‘InvalidArgumentException(‘You cannot create a RejectedPromise with a promise’ is closed to new replies.