Skip to content

Commit 934e09e

Browse files
authored
Use the NotBlank attribute (#1796)
1 parent 4888879 commit 934e09e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/src/Entity/Greeting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class Greeting
2727
* A nice person
2828
*
2929
* @ORM\Column
30-
* @Assert\NotBlank
3130
*/
31+
#[Assert\NotBlank]
3232
public string $name = '';
3333

3434
public function getId(): ?int

0 commit comments

Comments
 (0)