Fixed tests

This commit is contained in:
Jan Böhmer 2023-11-22 17:14:24 +01:00
parent c86694ab8f
commit 50069c7611
2 changed files with 15 additions and 1 deletions

View file

@ -24,12 +24,17 @@ declare(strict_types=1);
namespace App\Services\EntityMergers\Mergers;
/**
* @template T of object
*/
interface EntityMergerInterface
{
/**
* Determines if this merger supports merging the other entity into the target entity.
* @param object $target
* @phpstan-param T $target
* @param object $other
* @phpstan-param T $other
* @param array $context
* @return bool True if this merger supports merging the other entity into the target entity, false otherwise
*/
@ -39,8 +44,11 @@ interface EntityMergerInterface
* Merge the other entity into the target entity.
* The target entity will be modified and returned.
* @param object $target
* @phpstan-param T $target
* @param object $other
* @phpstan-param T $other
* @param array $context
* @phpstan-return T
* @return object
*/
public function merge(object $target, object $other, array $context = []): object;