Skip to content

Commit

Permalink
Fix psalm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Feb 4, 2025
1 parent f205a21 commit 0a5bbc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Internal/Workflow/Process/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public function start(MethodHandler|\Closure $handler, ValuesInterface $values,

// Prepare typed input
\assert($handler instanceof MethodHandler);
$arguments = $handler->resolveArguments($values ?? EncodedValues::empty());
$arguments = $handler->resolveArguments($values);

// Manage init method
$this->context->getWorkflowInstance()->init($arguments);
Expand Down
2 changes: 1 addition & 1 deletion src/Internal/Workflow/Process/Scope.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function getContext(): WorkflowContext
public function start(MethodHandler|\Closure $handler, ValuesInterface $values, bool $deferred): void
{
// Create a coroutine generator
$this->coroutine = DeferredGenerator::fromHandler($handler, $values ?? EncodedValues::empty())
$this->coroutine = DeferredGenerator::fromHandler($handler, $values)
->catch($this->onException(...));

$deferred
Expand Down

0 comments on commit 0a5bbc2

Please sign in to comment.