Skip to content

Fixes Docblock class ClientTokenGateway and PayPalAccountGateway#315

Closed
BruceGitHub wants to merge 2 commits intobraintree:masterfrom
BruceGitHub:fix-docblock-client-token-gateway-class
Closed

Fixes Docblock class ClientTokenGateway and PayPalAccountGateway#315
BruceGitHub wants to merge 2 commits intobraintree:masterfrom
BruceGitHub:fix-docblock-client-token-gateway-class

Conversation

@BruceGitHub
Copy link
Copy Markdown

Fixes format in Docblock classes: ClientTokenGateway and PayPalAccountGateway

Actual Docblock, cause an error for static analysis like Psalm, Phpstan because the class Optional does not exist actually

@BruceGitHub BruceGitHub requested a review from a team as a code owner March 4, 2022 07:45
@BruceGitHub BruceGitHub changed the title Fixes Docblock class ClientTokenGateway Fixes Docblock class ClientTokenGateway and PayPalAccountGateway Mar 4, 2022
@hollabaq86
Copy link
Copy Markdown
Contributor

🙃 thanks for the PR @BruceGitHub, no ETA but we will take a look and provide feedback or just merge.

@hollabaq86 hollabaq86 mentioned this pull request Apr 26, 2022
* Generate a client token for client-side authorization
*
* @param Optional $params containing request parameters
* @param $params Optional, containing request parameters
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
* @param $params Optional, containing request parameters
* @param mixed $params Optional, containing request parameters

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

For me no problem, but why mixed ?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I just ran into this one too. It should be array. As it stands, phpstan is looking for a class called Braintree\Optional.

@hollabaq86
Copy link
Copy Markdown
Contributor

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

for braintree folks, ticket 2046

hollabaq86 pushed a commit that referenced this pull request Jan 11, 2023
* update dockerfile and composer file to versions of php and phpunit that will run in CI

* setUp and teardown must be void compatible

* fixup warning unit tests

* address phpunit deprecation warnings

* make integration tests setUp void compatible

* fix breaking changes in integration tests

* update tests to resolve deprecation warnings

* Don't create phpunit cache file

* add phpunit result cache to gitignore just in case

* fixup SSL unit test

* fixup failing integration tests
@trippo
Copy link
Copy Markdown

trippo commented Jan 5, 2024

Please rewiew this

@BruceGitHub BruceGitHub closed this by deleting the head repository Jan 9, 2026
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.

5 participants