Skip to content

Commit 0e9736a

Browse files
committed
Fixed statement in proxy : used factory in static function
1 parent c983a21 commit 0e9736a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/PipelineProxy.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ public function __construct(
2828
private readonly State\StateOutput\Workflow $state,
2929
private readonly string $filename,
3030
) {
31-
$this->queuedCalls [] = static function (PipelineConsoleRuntime $runtime) {
32-
$factory = null;
31+
$this->queuedCalls[] = static function (PipelineConsoleRuntime $runtime) use ($factory): void {
3332
$factory($runtime);
3433
};
3534
}

0 commit comments

Comments
 (0)