Skip to content

Commit

Permalink
Used interface instead of using an implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
sebprt committed Feb 15, 2024
1 parent 733274f commit 5fbcccf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Runtime/Workflow/Runtime.php
Expand Up @@ -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' => [
Expand Down
2 changes: 1 addition & 1 deletion src/Service.php
Expand Up @@ -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__);
Expand Down

0 comments on commit 5fbcccf

Please sign in to comment.