-
Notifications
You must be signed in to change notification settings - Fork 294
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
fix cs and alot of phpstan warnings, add more types #333
Conversation
bc13f5d
to
5be7a3a
Compare
…tSize may return null anyway
this is safe as either users use strict types and the php functions like fopen() would throw a TypeError anyway or they don't use strict types and params will be casted automatically
Did you apply all these by hand? Some of these might be worth to be applied through php-cs-fixer... some examples:
and maybe more.. extra resource: https://mlocati.github.io/php-cs-fixer-configurator/#version:2.16 |
Yes all done by hand. There were also alot of minor errors like return mocks for methods that shouldn't return or wrong return types. |
this is safe due to phps contravariant return type rules
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There might be more changes or PHPStan issues that we might be able to fix.. but as a first PR it LGTM at this state.
No description provided.