diff --git a/README.md b/README.md index 4e6588b0..b6fe79f9 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,7 @@ If `$reason` itself is a promise, the promise will be rejected with the outcome of this promise regardless whether it fulfills or rejects. #### Deferred::notify() +**DEPRECATED** Progress notification is deprecated. Will be removed in upcoming versions. ```php $deferred->notify(mixed $update = null); diff --git a/src/Deferred.php b/src/Deferred.php index f23980c3..070bc711 100644 --- a/src/Deferred.php +++ b/src/Deferred.php @@ -42,6 +42,9 @@ public function reject($reason = null) call_user_func($this->rejectCallback, $reason); } + /** + * @deprecated 2.2.0 + */ public function notify($update = null) { $this->promise();