-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adding support for phpstan #5
Conversation
@pnx Thanks! Haven't worked much with PHPStan to be honest, will look through it all as soon as I've got the time! |
PHPDoc does not follow convention: There is a $ sign in front of variable names in @Property tag (all tags actually). PHPStorm allows variables without $, but this is not correct. |
For example in Refund.php |
@verifiera – not sure what you mean? This PR by @pnx's adds |
PR does it also. Just wanted to say that to make it easy to use your great library in a project with PHPStan static analysis probably is enough to update @phpdocs for Olssonm\Swish\Refund (other classes looks correctly). Currently, there is a problem, we use your library in the project with phpstan integrated, and need handle the Refund class in a special way because $ signs are missing in @PHPDoc section. |
@pnx Thanks for your PR! A new release has been published (v2.1) and it should be available shortly via packagist.org. |
👍 |
Nice to have phpstan in this project to catch additional problems :)