Please add @return never doc attr for the Response::json() method too, as it was done for Response::redirect(). Thanks.