From bf9beff0c65477ff2577b4f6ddd6a344f54c6879 Mon Sep 17 00:00:00 2001 From: slash3b Date: Sat, 9 Dec 2017 19:04:36 +0200 Subject: [PATCH] documentation update: notify is deprecated and will be removed in future versions --- README.md | 1 + src/Deferred.php | 3 +++ 2 files changed, 4 insertions(+) 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();