Description
Environment
sentry-symfony 4.0.1 / sentry-php 3.1.5
Steps to Reproduce
Set the following configuration:
sentry:
dsn: ~ # Or ''
Expected Result
Sentry client should not push any event to the Sentry instance.
Actual Result
But it does. Due to this particular change, a falsy dsn value will be unset from the configuration: c95a2bd#diff-ebe00144d6cecb5ca8a2860883e01147f42bbed2b12a3a7f44915908a4829faaR30
As it is unset, it is not forwarded to the Sentry Client options and that causes sentry-php to fallback to the SENTRY_DSN
defined in the environment, as that is the default: https://github.com/getsentry/sentry-php/blob/master/src/Options.php#L693
Either the documentation here should be updated (and it should be added to the 4.0 upgrade notes) that you need to disable it using some other method (I do not know which one), or the value should not be unset in the configuration.