Explorar el Código

Suppression d'un deprecated dans le Dto Filter

Sangfroid hace 5 días
padre
commit
ec8fc4c63b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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,