Skip to content

Commit

Permalink
fix: adapt GenericConverter and StrategicConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
lukadschaak committed Dec 5, 2023
1 parent 0f17ac9 commit f1a2889
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Converter/GenericConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
use Neusta\ConverterBundle\TargetFactory;

/**
* @template TSource of object
* @template TTarget of object
* @template TSource of object
* @template TContext of object|null
*
* @implements Converter<TSource, TTarget, TContext>
Expand All @@ -19,7 +19,7 @@ final class GenericConverter implements Converter
{
/**
* @param TargetFactory<TTarget, TContext> $factory
* @param array<Populator<TSource, TTarget, TContext>> $populators
* @param array<Populator<TTarget, TSource, TContext>> $populators
*/
public function __construct(
private TargetFactory $factory,
Expand Down
4 changes: 2 additions & 2 deletions src/Converter/StrategicConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
use Neusta\ConverterBundle\Exception\ConverterException;

/**
* @template TSource of object
* @template TTarget of object
* @template TSource of object
* @template TContext of object|null
*
* @implements Converter<TSource, TTarget, TContext>
*/
final class StrategicConverter implements Converter
{
/**
* @param array<string, Converter<TSource, TTarget, TContext>> $converters
* @param array<string, Converter<TTarget, TSource, TContext>> $converters
* @param ConverterSelector<TSource, TContext> $selector
*/
public function __construct(
Expand Down

0 comments on commit f1a2889

Please sign in to comment.