Skip to content

Improved static analysis for proxied workflows and activities#738

Open
mtorromeo wants to merge 1 commit intotemporalio:masterfrom
mtorromeo:proxy-types
Open

Improved static analysis for proxied workflows and activities#738
mtorromeo wants to merge 1 commit intotemporalio:masterfrom
mtorromeo:proxy-types

Conversation

@mtorromeo
Copy link
Copy Markdown

@mtorromeo mtorromeo commented Apr 2, 2026

What was changed

Added multiple type parameters to stub/proxy classes, with templated ReturnType for workflow methods and UpdateHandle, and used @mixin instead of lying about the return type of proxy instances.

Why?

This fixes multiple type inference issues that I encountered when using this library. I am using PHPStan instead of psalm but every annotation involved is supported by both analyzers.

Checklist

  1. How was this tested:

I have been using a patched version with these changes for a few months in a project that is in production without any issues. This does not touch any actual php code anyway, just doc comments for the static analyzers.

  1. Any docs updates needed?

Nothing needs to be updated.

@mtorromeo mtorromeo requested review from a team, roxblnfk and wolfy-j as code owners April 2, 2026 12:34
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 2, 2026

@mtorromeo is attempting to deploy a commit to the Temporal Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant