diff --git a/src/Hooks/TestCaseHandler.php b/src/Hooks/TestCaseHandler.php index c9bcc4a..e58a902 100644 --- a/src/Hooks/TestCaseHandler.php +++ b/src/Hooks/TestCaseHandler.php @@ -171,7 +171,7 @@ public static function afterStatementAnalysis(AfterClassLikeAnalysisEvent $event try { $provider_docblock_location = clone $method_storage->location; $provider_docblock_location->setCommentLine($line); - } catch (Error $_) { + } catch (Error $e) { /** @var CodeLocation */ $provider_docblock_location = $method_storage->location->setCommentLine($line); }