Skip to content

Fix type mismatch in Environment::start() $rrCommand parameter#725

Open
jmortlock wants to merge 2 commits intotemporalio:masterfrom
jmortlock:fix/start-rr-command-type-mismatch
Open

Fix type mismatch in Environment::start() $rrCommand parameter#725
jmortlock wants to merge 2 commits intotemporalio:masterfrom
jmortlock:fix/start-rr-command-type-mismatch

Conversation

@jmortlock
Copy link
Contributor

What was changed

Environment::start() declares $rrCommand as ?array but passes it directly to startRoadRunner() which expects ?string, causing a TypeError at runtime:

TypeError: Temporal\Testing\Environment::startRoadRunner(): Argument #1 ($rrCommand) must be of type ?string, array given

This was introduced in #714 (143a9e8) which changed start() from ?string to ?array but left startRoadRunner() as ?string.

Why?

Type mismatch

Checklist

N/A

  1. How was this tested:
    N/A

  2. Any docs updates needed?
    N/A

Environment::start() declares $rrCommand as ?array but passes it
directly to startRoadRunner() which expects ?string. This causes a
TypeError at runtime.

Change start() to accept ?string to match startRoadRunner().

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jmortlock jmortlock requested review from a team, roxblnfk and wolfy-j as code owners March 10, 2026 02:59
@vercel
Copy link

vercel bot commented Mar 10, 2026

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

A member of the Team first needs to authorize it.

@mtorromeo
Copy link

mtorromeo commented Mar 12, 2026

I think the command should stay of type array. See my proposed PR #726

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.

3 participants