mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-03 04:29:40 +00:00
Update AssociatedEntityToStoredObjectRepository to use iterable instead of array for repositories
- Changed the constructor parameter type from `array` to `iterable` for increased flexibility in handling repository collections.
This commit is contained in:
@@ -19,9 +19,9 @@ use Chill\DocStoreBundle\Entity\StoredObject;
|
||||
class AssociatedEntityToStoredObjectRepository
|
||||
{
|
||||
/**
|
||||
* @param list<AssociatedEntityToStoredObjectInterface> $repositories
|
||||
* @param iterable<AssociatedEntityToStoredObjectInterface> $repositories
|
||||
*/
|
||||
public function __construct(private array $repositories) {}
|
||||
public function __construct(private iterable $repositories) {}
|
||||
|
||||
public function findAssociatedEntityToStoredObject(StoredObject $storedObject): ?object
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user