I have this function in my Laravel 5.5 project
public function report(Exception $exception)
{
if (app()->bound('sentry') && $this->shouldReport($exception)){
app('sentry')->captureException($exception);
}
parent::report($exception);
}
The problem is an old component of this big project that is fireing 1000 times a day this exception
User Deprecated: The "Symfony\Component\HttpFoundation\Request::setTrustedHeaderName()" method is deprecated since Symfony 3.3 and will be removed in 4.0. Use the $trustedHeaderSet argument of the Request::setTrustedProxies() method instead.
Note that in my php.ini the E_USER_DEPRECATED errors are not set as reported (i used ~E_USER_DEPRECATED
to disable reporting these kind of exceptions.
any way an old Symfony component is doing this:
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 3.3 and will be removed in 4.0. Use the $trustedHeaderSet argument of the Request::setTrustedProxies() method instead.', __METHOD__), E_USER_DEPRECATED);
I cannot simply silent this exception, because silented count for free plan limit ( … because we’re still on free plan, but we loose our 5k/month limit in < 6 days. )
Could you kindly help me to stop sending this specific exception at all to sentry?