sentry-php icon indicating copy to clipboard operation
sentry-php copied to clipboard

Return `ClientInterface` from `init()`

Open cleptric opened this issue 1 year ago • 0 comments
trafficstars

\Sentry\init([...]);

$client = SentrySDK::getCurrentHub()->getClient();
if ($client !== null) {
   ...
}
$client = \Sentry\init([...]);

Seems beneficial to make this change.

cleptric avatar Jun 14 '24 14:06 cleptric