Skip to content

Commit

Permalink
Fix: Narrow transformResult type in TransformEvent (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpolaszek authored Nov 13, 2023
1 parent 59a7b05 commit cf4028a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/EventDispatcher/Event/TransformEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use BenTools\ETL\EtlState;
use BenTools\ETL\EventDispatcher\StoppableEventTrait;
use BenTools\ETL\Internal\TransformResult;
use Psr\EventDispatcher\StoppableEventInterface;

final class TransformEvent extends Event implements StoppableEventInterface
Expand All @@ -14,7 +15,7 @@ final class TransformEvent extends Event implements StoppableEventInterface

public function __construct(
public readonly EtlState $state,
public mixed $transformResult,
public TransformResult $transformResult,
) {
}
}

0 comments on commit cf4028a

Please sign in to comment.