Skip to content

Commit

Permalink
Deprecate save() (#1382)
Browse files Browse the repository at this point in the history
* Mark save as deprecated

* Update lib/ApiOperations/Update.php

Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>

* Add 'a' and new lines

Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>
  • Loading branch information
anniel-stripe and ramya-stripe authored Oct 24, 2022
1 parent 7f31d8f commit ff3601c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ApiOperations/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ 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 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)
{
Expand Down

0 comments on commit ff3601c

Please sign in to comment.