braintree / braintree_php

Braintree PHP library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
545 stars 226 forks source link

Wrong types #305

Open pupitooo opened 3 years ago

pupitooo commented 3 years ago

General information

Issue description

I try to use v6.5.0 instead of our actual v6.4.1, but PhpStan found a lot of type errors.

Commit https://github.com/braintree/braintree_php/commit/e35c2a2d74a10e9cec5932506486e4b8bccfa4ba is full types mistakes like this. Is it possible to fix this?

hollabaq86 commented 3 years ago

🙃 well, crud. Sorry about that. If you'd like to PR the fixes to the docs, please feel free to do so! I don't have an ETA on when these will get fixed up, but they will eventually get fixed.

Tlapi commented 3 years ago

https://github.com/braintree/braintree_php/pull/304

hollabaq86 commented 2 years ago

Going to turn this first issue on types into a mega-thread of issues similar issues opened. See also #314

hollabaq86 commented 2 years ago

related PRs - #315

hollabaq86 commented 2 years ago

for internal tracking, ticket 1401

hollabaq86 commented 1 year ago

Lumping in #326 with this as well, in that this PR highlights that returns and throws need cleaning up.