Skip to content

Commit

Permalink
Fix typo, it turns out $_ is used later on as a ref parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Nov 3, 2022
1 parent 1b62fa7 commit eb69695
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 eb69695

Please sign in to comment.