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

Fixes Docblock class ClientTokenGateway and PayPalAccountGateway #315

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

BruceGitHub
Copy link

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
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
@@ -28,7 +28,7 @@ public function __construct($gateway)
/**
* Generate a client token for client-side authorization
*
* @param Optional $params containing request parameters
* @param $params Optional, containing request parameters

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
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

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
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

trippo commented Jan 5, 2024

Please rewiew this

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.

None yet

5 participants