Skip to content

Conversation

@KorDum
Copy link
Contributor

@KorDum KorDum commented Oct 24, 2025

What was changed

The list of annotations for PromiseInterface has been expanded for a better understanding of psalm.

Why?

The annotations specified in PromiseInterface do not work correctly for psalm:
https://psalm.dev/r/491dc2f14a

If you add the @psalm-yield annotation, which is supported by psalm, the problem disappears:
https://psalm.dev/r/5048107af6

Checklist

  • Tested
    • Tested manually
    • Unit tests added

@roxblnfk roxblnfk merged commit b5d629d into php-internal:2.x Oct 24, 2025
5 checks passed
@KorDum KorDum deleted the fix-promise-yield-2 branch October 24, 2025 09:37
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.

2 participants