From 8be1998eb5440c6a56e4a5dc92f01e8c5a729a9b Mon Sep 17 00:00:00 2001 From: Olivier Bellone Date: Mon, 6 Jan 2020 18:00:49 -0800 Subject: [PATCH] Rename remaining $options to $opts --- lib/Customer.php | 6 +++--- lib/File.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Customer.php b/lib/Customer.php index c1d7d92c6..336ddc7b4 100644 --- a/lib/Customer.php +++ b/lib/Customer.php @@ -67,14 +67,14 @@ public static function getSavedNestedResources() /** * @param array|null $params - * @param array|string|null $options + * @param array|string|null $opts * * @return Customer The updated customer. */ - public function deleteDiscount($params = null, $options = null) + public function deleteDiscount($params = null, $opts = null) { $url = $this->instanceUrl() . '/discount'; - list($response, $opts) = $this->_request('delete', $url, $params, $options); + list($response, $opts) = $this->_request('delete', $url, $params, $opts); $this->refreshFrom(['discount' => null], $opts, true); } diff --git a/lib/File.php b/lib/File.php index 2fed775ef..a4f8b1900 100644 --- a/lib/File.php +++ b/lib/File.php @@ -40,15 +40,15 @@ public static function classUrl() /** * @param array|null $params - * @param array|string|null $options + * @param array|string|null $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\File The created resource. */ - public static function create($params = null, $options = null) + public static function create($params = null, $opts = null) { - $opts = \Stripe\Util\RequestOptions::parse($options); + $opts = \Stripe\Util\RequestOptions::parse($opts); if (is_null($opts->apiBase)) { $opts->apiBase = Stripe::$apiUploadBase; }