Skip to content

Conversation

@xepozz
Copy link
Collaborator

@xepozz xepozz commented Dec 26, 2025

What was changed

Why?

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

@vercel
Copy link

vercel bot commented Dec 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
php Ready Ready Preview, Comment Jan 26, 2026 4:15pm

Request Review


private function drain(): void
{
/** @psalm-suppress PossiblyNullArrayOffset */
Copy link
Collaborator

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?

Copy link
Collaborator Author

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
image

Copy link
Collaborator

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I used psalm:baseline command instead

@xepozz xepozz merged commit f6f4291 into master Jan 26, 2026
87 of 114 checks passed
@xepozz xepozz deleted the psalm branch January 26, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants