Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: change order of template annotations #61

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
use Neusta\ConverterBundle\Exception\ConverterException;

/**
* @template TSource of object
* @template TTarget of object
* @template TSource of object
* @template TContext of object|null
*/
interface Converter
Expand Down
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
2 changes: 1 addition & 1 deletion src/Populator.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
namespace Neusta\ConverterBundle;

/**
* @template TSource of object
* @template TTarget of object
* @template TSource of object
* @template TContext of object|null
*/
interface Populator
Expand Down