Skip to content

Commit

Permalink
Update using-validation-attributes.md
Browse files Browse the repository at this point in the history
  • Loading branch information
giorgiopogliani authored Apr 8, 2024
1 parent 460f8a0 commit 5bef2f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/validation/using-validation-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class CustomRule extends CustomValidationAttribute
/**
* @return array<object|string>|object|string
*/
public function getRules(ValidationPath $path): array|object|string;
public function getRules(ValidationPath $path): array|object|string
{
return [new CustomRule()];
}
Expand Down

0 comments on commit 5bef2f8

Please sign in to comment.