Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Braintree/ClientTokenGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
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.

*
* @return string client token
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/Braintree/PayPalAccountGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ private function _verifyGatewayResponse($response)
* verifies that a valid paypal account identifier is being used
*
* @param string $identifier
* @param Optional $string $identifierType type of identifier supplied, default 'token'
* @param string $identifierType Optional, type of identifier supplied, default 'token'
*
* @throws InvalidArgumentException
*/
Expand Down