Fix static analysis

This commit is contained in:
Grzegorz Sadowski 2024-09-10 08:31:45 +02:00
parent fc5225d627
commit 3c941e631a

View file

@ -17,12 +17,12 @@ use Symfony\Component\Form\DataTransformerInterface;
final class UserVerifiedAtToBooleanTransformer implements DataTransformerInterface
{
public function transform($value)
public function transform(mixed $value): mixed
{
return (bool) $value;
}
public function reverseTransform($value)
public function reverseTransform(mixed $value): mixed
{
return $value ? new \DateTime() : null;
}