From 5fbcccf103a30fea04e994404d3fbb87b92b8b60 Mon Sep 17 00:00:00 2001 From: sebprt Date: Thu, 15 Feb 2024 09:43:23 +0100 Subject: [PATCH] Used interface instead of using an implementation --- src/Runtime/Workflow/Runtime.php | 2 +- src/Service.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Runtime/Workflow/Runtime.php b/src/Runtime/Workflow/Runtime.php index 4549a85e..55f96256 100644 --- a/src/Runtime/Workflow/Runtime.php +++ b/src/Runtime/Workflow/Runtime.php @@ -50,7 +50,7 @@ public function build(Builder $builder): array 'params' => [ new Node\Param( var: new Node\Expr\Variable('runtime'), - type: new Node\Name\FullyQualified('Kiboko\\Component\\Runtime\\Workflow\\Console'), + type: new Node\Name\FullyQualified('Kiboko\\Component\\Runtime\\Workflow\\WorkflowRuntimeInterface'), ), ], 'stmts' => [ diff --git a/src/Service.php b/src/Service.php index e49b585c..e73fe8b2 100644 --- a/src/Service.php +++ b/src/Service.php @@ -257,7 +257,7 @@ private function compileWorkflow(array $config): Satellite\Builder\Repository\Wo /** @var WorkflowRuntimeInterface $runtime */ $runtime = require __DIR__ . '/runtime.php'; - /** @var callable(runtime: WorkflowConsoleRuntime): WorkflowConsoleRuntime $workflow */ + /** @var callable(runtime: WorkflowRuntimeInterface): WorkflowRuntimeInterface $workflow */ $workflow = require __DIR__ . '/workflow.php'; chdir(__DIR__);