Skip to content

Commit

Permalink
Merge pull request #647 from simon-tma/static-return
Browse files Browse the repository at this point in the history
Set the return type to static for more operations
  • Loading branch information
ob-stripe authored May 7, 2019
2 parents e412faa + 853ea29 commit ecb871d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/ApiOperations/Create.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ trait Create
* @param array|null $params
* @param array|string|null $options
*
* @return \Stripe\ApiResource The created resource.
* @return static The created resource.
*/
public static function create($params = null, $options = null)
{
Expand Down
2 changes: 1 addition & 1 deletion lib/ApiOperations/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ trait Delete
* @param array|null $params
* @param array|string|null $opts
*
* @return \Stripe\ApiResource The deleted resource.
* @return static The deleted resource.
*/
public function delete($params = null, $opts = null)
{
Expand Down
4 changes: 2 additions & 2 deletions lib/ApiOperations/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ trait Update
* @param array|null $params
* @param array|string|null $opts
*
* @return \Stripe\ApiResource The updated resource.
* @return static The updated resource.
*/
public static function update($id, $params = null, $opts = null)
{
Expand All @@ -31,7 +31,7 @@ public static function update($id, $params = null, $opts = null)
/**
* @param array|string|null $opts
*
* @return \Stripe\ApiResource The saved resource.
* @return static The saved resource.
*/
public function save($opts = null)
{
Expand Down

0 comments on commit ecb871d

Please sign in to comment.