Skip to content

Commit

Permalink
Merge pull request #23 from pathmissing/patch-1
Browse files Browse the repository at this point in the history
Fix symfony 6.3 deprecation warnings in FactoryTrait.php
  • Loading branch information
J-Ben87 committed Dec 15, 2023
2 parents 5a68cee + 16af0c2 commit 0c08bec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Constraint/Factory/FactoryTrait.php
Expand Up @@ -4,6 +4,7 @@

namespace JBen87\ParsleyBundle\Constraint\Factory;

use Symfony\Contracts\Service\Attribute\Required;
use Symfony\Contracts\Translation\TranslatorInterface;

trait FactoryTrait
Expand All @@ -13,6 +14,7 @@ trait FactoryTrait
/**
* @required
*/
#[Required]
public function setTranslator(TranslatorInterface $translator): void
{
$this->translator = $translator;
Expand Down

0 comments on commit 0c08bec

Please sign in to comment.