소스 검색

Suppression d'un deprecated dans le Dto Filter

Sangfroid 5 일 전
부모
커밋
ec8fc4c63b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Dto/FiltersDTO.php

+ 1 - 1
src/Dto/FiltersDTO.php

@@ -20,7 +20,7 @@ class FiltersDTO
         #[Assert\NotBlank()]
         public string $sortBy = 'dateSubmited',
 
-        #[Assert\Choice(['ASC', 'DESC'])]
+        #[Assert\Choice(choices: ['ASC', 'DESC'])]
         public string $sortOrder = 'DESC',
 
         public ?User $userWantToView = null,