From 73c3145ba56ee2335ee334d53260f36d085feceb Mon Sep 17 00:00:00 2001 From: Annie Li Date: Wed, 19 Oct 2022 15:59:41 -0700 Subject: [PATCH 1/3] Mark save as deprecated --- lib/ApiOperations/Update.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ApiOperations/Update.php b/lib/ApiOperations/Update.php index 688f0808a..32ba16b88 100644 --- a/lib/ApiOperations/Update.php +++ b/lib/ApiOperations/Update.php @@ -37,6 +37,8 @@ public static function update($id, $params = null, $opts = null) * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return static the saved resource + * + * @deprecated The save method is deprecated and for backwards compatibility only. Use the update method with the resource ID instead. */ public function save($opts = null) { From 9f05f4940fc21be080df8eda3ee023c2197cffc8 Mon Sep 17 00:00:00 2001 From: anniel-stripe <97691964+anniel-stripe@users.noreply.github.com> Date: Mon, 24 Oct 2022 10:06:47 -0700 Subject: [PATCH 2/3] Update lib/ApiOperations/Update.php Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com> --- lib/ApiOperations/Update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ApiOperations/Update.php b/lib/ApiOperations/Update.php index 32ba16b88..edfad5563 100644 --- a/lib/ApiOperations/Update.php +++ b/lib/ApiOperations/Update.php @@ -38,7 +38,7 @@ public static function update($id, $params = null, $opts = null) * * @return static the saved resource * - * @deprecated The save method is deprecated and for backwards compatibility only. Use the update method with the resource ID instead. + * @deprecated The `save` method is deprecated and will be removed in future major version of the library. Use the static method `update` on the resource instead. */ public function save($opts = null) { From d00a2d7acbbeb6d55df7c21dac55e49818c4f6cf Mon Sep 17 00:00:00 2001 From: Annie Li Date: Mon, 24 Oct 2022 10:29:38 -0700 Subject: [PATCH 3/3] Add 'a' and new lines --- lib/ApiOperations/Update.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ApiOperations/Update.php b/lib/ApiOperations/Update.php index edfad5563..9fde1e4f7 100644 --- a/lib/ApiOperations/Update.php +++ b/lib/ApiOperations/Update.php @@ -38,7 +38,9 @@ public static function update($id, $params = null, $opts = null) * * @return static the saved resource * - * @deprecated The `save` method is deprecated and will be removed in future major version of the library. Use the static method `update` on the resource instead. + * @deprecated The `save` method is deprecated and will be removed in a + * future major version of the library. Use the static method `update` + * on the resource instead. */ public function save($opts = null) {