Skip to content

Commit ce1d06d

Browse files
committed
fix: corriger la méthode supportsData pour vérifier le type d'entité dans EpisodeData
1 parent 40ce5ae commit ce1d06d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

apps/src/Data/EpisodeData.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ public function asset(mixed $entity, string $field): string
1818
return parent::asset($entity->getRefseason(), 'backdrop');
1919
}
2020

21+
#[Override]
22+
public function supportsData(object $entity): bool
23+
{
24+
return $entity instanceof Episode;
25+
}
26+
2127
public function getDefaultImage(object $entity): ?string
2228
{
2329
return $entity->getImg();

0 commit comments

Comments
 (0)