Skip to content

Commit

Permalink
Fix Symfony 6.4 deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
misantron committed Dec 22, 2023
1 parent 14dc1c6 commit d288417
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/Constraint/Composite.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct(mixed ...$constraints)
}
}

public function evaluate(mixed $other, string $description = '', bool $returnResult = false): ?bool
public function evaluate(mixed $other, string $description = '', bool $returnResult = false): bool
{
$success = true;
foreach ($this->constraints as $constraint) {
Expand Down
4 changes: 2 additions & 2 deletions tests/DependencyMockTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
use Symfony\Component\Serializer\Serializer;
use Symfony\Component\Validator\Mapping\Loader\AnnotationLoader;
use Symfony\Component\Validator\Mapping\Loader\AttributeLoader;
use Symfony\Component\Validator\Validation;
use Symfony\Component\Validator\Validator\ValidatorInterface;

Expand All @@ -27,7 +27,7 @@ protected function createSerializer(): NormalizerInterface
protected function createValidator(): ValidatorInterface
{
return Validation::createValidatorBuilder()
->addLoader(new AnnotationLoader())
->addLoader(new AttributeLoader())
->getValidator();
}

Expand Down

0 comments on commit d288417

Please sign in to comment.