Skip to content

Commit

Permalink
Merge pull request #126 from Nicelocal/master
Browse files Browse the repository at this point in the history
Fix typo, it turns out $_ is used later on as a ref parameter
  • Loading branch information
orklah committed Nov 3, 2022
2 parents b7aabc4 + eb69695 commit 057c1cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hooks/TestCaseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 057c1cd

Please sign in to comment.