Skip to content

Commit be1ff47

Browse files
committed
minor #1596 Change order of attribute arguments (JeroenMoonen)
This PR was merged into the main branch. Discussion ---------- Change order of attribute arguments According to the argument list the sorting was incorrect. Correct sorting is: ``` public function __construct( int|array|null $exactly = null, ?int $min = null, ?int $max = null, ?string $charset = null, ?callable $normalizer = null, ?string $countUnit = null, ?string $exactMessage = null, ?string $minMessage = null, ?string $maxMessage = null, ?string $charsetMessage = null, ?array $groups = null, mixed $payload = null, ?array $options = null, ) { ``` Commits ------- e11a1de Change order of attribute arguments
2 parents a9c9dde + e11a1de commit be1ff47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Entity/Comment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Comment
4141

4242
#[ORM\Column(type: Types::TEXT)]
4343
#[Assert\NotBlank(message: 'comment.blank')]
44-
#[Assert\Length(min: 5, minMessage: 'comment.too_short', max: 10000, maxMessage: 'comment.too_long')]
44+
#[Assert\Length(min: 5, max: 10000, minMessage: 'comment.too_short', maxMessage: 'comment.too_long')]
4545
private ?string $content = null;
4646

4747
#[ORM\Column]

0 commit comments

Comments
 (0)