Skip to content

Commit 132b469

Browse files
committed
Add missing return types
1 parent 0e5fd35 commit 132b469

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/EventListener/ExceptionListener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function onKernelRequest(GetResponseEvent $event): void
9494
/**
9595
* @param GetResponseForExceptionEvent $event
9696
*/
97-
public function onKernelException(GetResponseForExceptionEvent $event)
97+
public function onKernelException(GetResponseForExceptionEvent $event): void
9898
{
9999
$exception = $event->getException();
100100

@@ -114,15 +114,15 @@ public function onKernelException(GetResponseForExceptionEvent $event)
114114
*
115115
* @return void
116116
*/
117-
public function onConsoleCommand(ConsoleCommandEvent $event)
117+
public function onConsoleCommand(ConsoleCommandEvent $event): void
118118
{
119119
// only triggers loading of client, does not need to do anything.
120120
}
121121

122122
/**
123123
* @param ConsoleErrorEvent $event
124124
*/
125-
public function onConsoleException(ConsoleErrorEvent $event)
125+
public function onConsoleException(ConsoleErrorEvent $event): void
126126
{
127127
$command = $event->getCommand();
128128
/** @var \Exception $exception to avoid issues with PHPStan */

src/EventListener/SentryExceptionListenerInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ interface SentryExceptionListenerInterface
1717
*
1818
* @param GetResponseEvent $event
1919
*/
20-
public function onKernelRequest(GetResponseEvent $event);
20+
public function onKernelRequest(GetResponseEvent $event): void;
2121

2222
/**
2323
* When an exception occurs as part of a web request, this method will be
2424
* triggered for capturing the error.
2525
*
2626
* @param GetResponseForExceptionEvent $event
2727
*/
28-
public function onKernelException(GetResponseForExceptionEvent $event);
28+
public function onKernelException(GetResponseForExceptionEvent $event): void;
2929

3030
/**
3131
* When an exception occurs on the command line, this method will be
3232
* triggered for capturing the error.
3333
*
3434
* @param ConsoleErrorEvent $event
3535
*/
36-
public function onConsoleException(ConsoleErrorEvent $event);
36+
public function onConsoleException(ConsoleErrorEvent $event): void;
3737
}

0 commit comments

Comments
 (0)