PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
← All changes | includes/sdk/s3/Aws/MockHandler.php +3 -2 1.2.0 → 1.4.2 View file →
@@ -26,10 +26,11 @@
26 26 * @param array $resultOrQueue
27 27 * @param callable $onFulfilled Callback to invoke when the return value is fulfilled.
28 28 * @param callable $onRejected Callback to invoke when the return value is rejected.
29 29 */
30 - public function __construct(array $resultOrQueue = [], callable $onFulfilled = null, callable $onRejected = null)
30 + public function __construct(array $resultOrQueue = [], ?callable $onFulfilled = null, ?callable $onRejected = null)
31 31 {
32 + $this->queue = [];
32 33 $this->onFulfilled = $onFulfilled;
33 34 $this->onRejected = $onRejected;
34 35 if ($resultOrQueue) {
35 36 \call_user_func_array([$this, 'append'], \array_values($resultOrQueue));
@@ -93,9 +94,9 @@
93 94 }
94 95 /**
95 96 * Get the last received request.
96 97 *
97 - * @return RequestInterface
98 + * @return RequestInterface|null
98 99 */
99 100 public function getLastRequest()
100 101 {
101 102 return $this->lastRequest;