Refactor docblocks in UserJob repository interfaces.

Removed redundant PHP docblocks for array return types, as the return type hints already provide sufficient clarity. Added a @template annotation to specify the UserJob entity for the ObjectRepository.
This commit is contained in:
Julien Fastré 2025-04-25 13:07:41 +02:00
parent 9be8a533ff
commit d506409d93
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 3 additions and 9 deletions

View File

@ -30,9 +30,6 @@ readonly class UserJobRepository implements UserJobRepositoryInterface
return $this->repository->find($id);
}
/**
* @return array|UserJob[]
*/
public function findAll(): array
{
return $this->repository->findAll();

View File

@ -14,18 +14,15 @@ namespace Chill\MainBundle\Repository;
use Chill\MainBundle\Entity\UserJob;
use Doctrine\Persistence\ObjectRepository;
/**
* @template-extends ObjectRepository<UserJob>
*/
interface UserJobRepositoryInterface extends ObjectRepository
{
public function find($id): ?UserJob;
/**
* @return array|UserJob[]
*/
public function findAll(): array;
/**
* @return array|UserJob[]
*/
public function findAllActive(): array;
/**