-
Notifications
You must be signed in to change notification settings - Fork 53
fix: ignore psalm error #685
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
base: master
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
||
| private function drain(): void | ||
| { | ||
| /** @psalm-suppress PossiblyNullArrayOffset */ |
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 is the reasoning here?
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.
In a separate PR's you may notice that static analysis is failed, e.g. https://github.com/temporalio/sdk-php/actions/runs/20845807591/job/59889027930

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.
It's okay to suppress false positives with annotations. However, this case doesn't seem like a false positive, but to be sure, you need to study the class usage context.
If you still want to put this in the backlog, use psalm:baseline. To fix it, you'll need to rewrite the code.
What was changed
Why?
Checklist
Closes
How was this tested: