Skip to content

Commit 561967d

Browse files
committed
Refine PHPDoc for ExceptionListener
1 parent 665f782 commit 561967d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/EventListener/ExceptionListener.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
*/
2323
class ExceptionListener implements SentryExceptionListenerInterface
2424
{
25-
/** @var TokenStorageInterface */
25+
/** @var TokenStorageInterface|null */
2626
private $tokenStorage;
2727

28-
/** @var AuthorizationCheckerInterface */
28+
/** @var AuthorizationCheckerInterface|null */
2929
private $authorizationChecker;
3030

3131
/** @var \Raven_Client */
@@ -52,10 +52,6 @@ public function __construct(
5252
TokenStorageInterface $tokenStorage = null,
5353
AuthorizationCheckerInterface $authorizationChecker = null
5454
) {
55-
if (! $client) {
56-
$client = new SentrySymfonyClient();
57-
}
58-
5955
$this->client = $client;
6056
$this->eventDispatcher = $dispatcher;
6157
$this->skipCapture = $skipCapture;

0 commit comments

Comments
 (0)