From eb6969540a88a599e62b9ba8738b09b4f0ef69bb Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 3 Nov 2022 19:03:03 +0100 Subject: [PATCH] Fix typo, it turns out $_ is used later on as a ref parameter --- src/Hooks/TestCaseHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }