Skip to content

Commit

Permalink
Used Interface instead of an implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
sebprt committed Feb 15, 2024
1 parent 1e738f2 commit fa6aaea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Builder/Workflow.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function addAction(string $code, string $pipelineFilename): self
args: [
new Node\Arg(
new Node\Expr\StaticCall(
new Node\Name\FullyQualified('Kiboko\\Component\\Workflow\\JobCode'),
new Node\Name\FullyQualified('Kiboko\\Contract\\Satellite\\CodeInterface'),
new Node\Identifier('fromString'),
[
new Node\Arg(new Node\Scalar\String_($code)),
Expand Down

0 comments on commit fa6aaea

Please sign in to comment.