Skip to content

Commit 3aaa5af

Browse files
committed
Fix PHPStan errors
1 parent 9681cb6 commit 3aaa5af

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/EventListener/ExceptionListener.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ public function onConsoleException(ConsoleExceptionEvent $event): void
131131
$this->handleConsoleError($event);
132132
}
133133

134+
/**
135+
* @param ConsoleExceptionEvent|ConsoleErrorEvent $event
136+
*/
134137
private function handleConsoleError(ConsoleEvent $event): void
135138
{
136139
$command = $event->getCommand();

src/EventListener/SentryExceptionListenerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function onConsoleError(ConsoleErrorEvent $event): void;
4040
* When an exception occurs on the command line, this method will be
4141
* triggered for capturing the error.
4242
*
43-
* @param ConsoleErrorEvent $event
43+
* @param ConsoleExceptionEvent $event
4444
* @deprecated This method exists for BC with Symfony 3.x
4545
*/
4646
public function onConsoleException(ConsoleExceptionEvent $event): void;

0 commit comments

Comments
 (0)