Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix namespace in docblock #313

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Meyfarth
Copy link

@Meyfarth Meyfarth commented Mar 3, 2022

Summary

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.

Issue #314

Checklist

  • Added changelog entry
  • Ran unit tests (Check the README for instructions)
  • I understand that unless this is a Draft PR or has a DO NOT MERGE label, this PR is considered to be in a deploy ready state and can be deployed if merged to main

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.
@@ -1,5 +1,8 @@
# Changelog

## 6.7.1
* Fix wrong namespacing for the `Braintree\Result\ERror` class on docblocks

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Fix wrong namespacing for the `Braintree\Result\ERror` class on docblocks
* Fix wrong namespacing for the `Braintree\Result\Error` class on docblocks

@agustingomes
Copy link

Hi @braintreeps

Can you give this PR a review whenever possible? Thank you :)

@@ -21,7 +21,7 @@ class PaymentMethodNonce extends Base
*
* @see PaymentMethodNonceGateway::create()
*
* @return PaymentMethodNonce|Error
* @return PaymentMethodNonce|Result\Error

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make interface for those multiple different classes that are returned.

@hollabaq86
Copy link
Contributor

Hey folks, we'll take a look and provide feedback.

For braintree folks, ticket 2046

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants