Skip to content

Commit

Permalink
Update return type
Browse files Browse the repository at this point in the history
  • Loading branch information
giansalex committed Jul 2, 2022
1 parent befcf12 commit 97b8ac8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/validator/src/Validator/MessageTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function addResource(array $items)
*
* @throws \InvalidArgumentException If the locale contains invalid characters
*/
public function trans(string $id, array $parameters = [], string $domain = null, string $locale = null)
public function trans(string $id, array $parameters = [], string $domain = null, string $locale = null): string
{
return $this->getValue($id);
}
Expand Down

0 comments on commit 97b8ac8

Please sign in to comment.