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
Chore/phpstan upgrade #687
Chore/phpstan upgrade #687
Conversation
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.
Thank you for contributing to Infection. We noticed you didn't add any tests. Could you please add them to make sure everything works as expected?
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.
👍
What do you think, should we stop ignoring these errors, and have a bit more code, like in this PR?
I'm for it.
b7de2e9
to
2c491d7
Compare
2c491d7
to
be84846
Compare
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 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.
One of the ParallelProcessRunner issues may be worth fixing.
I fixed the issue in the |
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.
Thank you @BackEndTea
This PR:
Node
class missing properties or methodsBlocked by #685 Since that fixes issues surrounding names on nodes for decrement integer
That last one is the biggest change here. In most cases it means updating the doc comment to accurately reflect what is actually going into the method.
In some other cases it means assigning a property to a value, and then telling PHPStan what it is through
/** @var */
notation.The big upside of no longer ignoring these issues is that we now are notified of errors with
$node->name
during development. Like the ones found in:What do you think, should we stop ignoring these errors, and have a bit more code, like in this PR?
Or should we ignore the errors like previously?
Or should we add rules for specific files, stating for exactly which files these rules can be ignored?