Type error: Return value of BrokerStar\UserBundle\Service\PasswordReset::sendResetLink() must be an instance of BrokerStar\UserBundle\Service\Response, instance of Symfony\Component\HttpFoundation\JsonResponse returned code example
Example: symfony set content type
use Symfony\Component\HttpFoundation\Response;
$response = new Response();
$response->setContent(json_encode([
'data' => 123,
]));
$response->headers->set('Content-Type', 'application/json');