mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Fix static analysis
This commit is contained in:
parent
fc5225d627
commit
3c941e631a
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue