sentry-php
sentry-php copied to clipboard
Return `ClientInterface` from `init()`
trafficstars
\Sentry\init([...]);
$client = SentrySDK::getCurrentHub()->getClient();
if ($client !== null) {
...
}
$client = \Sentry\init([...]);
Seems beneficial to make this change.