From 1ae0c8258a54ac9fadf1bf87abe510dcb9031c2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Garcia?= Date: Thu, 3 Mar 2022 13:42:23 +0100 Subject: [PATCH] Fix namespace in docblock The Error class wasn't namespaced properly everywhere. The few classes in this MR were referencing a non-existing class (`Braintree\Error`). This MR aims to fix the namespace so static analysis tools do not fail while looking for the non-existing class. --- CHANGELOG.md | 3 +++ lib/Braintree/PaymentMethodNonce.php | 2 +- lib/Braintree/PaymentMethodNonceGateway.php | 2 +- lib/Braintree/UsBankAccount.php | 4 ++-- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9afa12ef..980261d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 6.7.1 +* Fix wrong namespacing for the `Braintree\Result\ERror` class on docblocks + ## 6.7.0 * Fix lint errors on unit test diff --git a/lib/Braintree/PaymentMethodNonce.php b/lib/Braintree/PaymentMethodNonce.php index 85f905ca..7c536cec 100644 --- a/lib/Braintree/PaymentMethodNonce.php +++ b/lib/Braintree/PaymentMethodNonce.php @@ -21,7 +21,7 @@ class PaymentMethodNonce extends Base * * @see PaymentMethodNonceGateway::create() * - * @return PaymentMethodNonce|Error + * @return PaymentMethodNonce|Result\Error */ public static function create($token, $params = []) { diff --git a/lib/Braintree/PaymentMethodNonceGateway.php b/lib/Braintree/PaymentMethodNonceGateway.php index a158ebf1..ade0808d 100644 --- a/lib/Braintree/PaymentMethodNonceGateway.php +++ b/lib/Braintree/PaymentMethodNonceGateway.php @@ -25,7 +25,7 @@ public function __construct($gateway) * @param string $token the identifier of the payment method * @param mixed|null $params additional parameters to be included in the request * - * @return PaymentMethodNonce|Error + * @return PaymentMethodNonce|Result\Error */ public function create($token, $params = []) { diff --git a/lib/Braintree/UsBankAccount.php b/lib/Braintree/UsBankAccount.php index fe7b0d94..aad5c58f 100644 --- a/lib/Braintree/UsBankAccount.php +++ b/lib/Braintree/UsBankAccount.php @@ -78,7 +78,7 @@ public function isDefault() * * @see USBankAccountGateway::find() * - * @return UsBankAccount|Error + * @return UsBankAccount|Result\Error */ public static function find($token) { @@ -91,7 +91,7 @@ public static function find($token) * @param string $token the payment method identifier * @param array $transactionAttribs all other transaction parameters * - * @return UsBankAccount|Error + * @return UsBankAccount|Result\Error */ public static function sale($token, $transactionAttribs) {