Commit a56fd629 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

[FIX] Correction du type de retour trop restrictif de SourceListener::fetchDefaultSource().

parent 9134fbc7
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ Changelog
5.2.2
-----
- [FIX] Synchro : la colonne 'source_id' peut être présente dans la table/vue source.
- [FIX] Correction du type de retour trop restrictif de SourceListener::fetchDefaultSource().

5.2.1
-----
+2 −1
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ use Doctrine\ORM\Event\PreUpdateEventArgs;
use Doctrine\ORM\Events;
use RuntimeException;
use UnicaenDbImport\Entity\Db\Interfaces\SourceAwareInterface;
use UnicaenDbImport\Entity\Db\Interfaces\SourceInterface;
use UnicaenDbImport\Entity\Db\Source;

/**
@@ -76,7 +77,7 @@ class SourceListener implements EventSubscriber
     * @param EntityManager $entityManager
     * @return Source
     */
    private function fetchDefaultSource(EntityManager $entityManager): Source
    private function fetchDefaultSource(EntityManager $entityManager): SourceInterface
    {
        if ($this->sourceEntityClass === null) {
            throw new RuntimeException("La classe d'entité Source n'a pas été spécifiée");