Skip to content

Commit

Permalink
Remove superfluous code
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Dec 23, 2024
1 parent 72dd45a commit fe933b8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Metadata/Api/CodeCoverage.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,8 @@ final class CodeCoverage
* @param class-string $className
* @param non-empty-string $methodName
*/
public function coversTargets(string $className, string $methodName): false|TargetCollection
public function coversTargets(string $className, string $methodName): TargetCollection
{
if (!$this->shouldCodeCoverageBeCollectedFor($className, $methodName)) {
return false;
}

$targets = [];

foreach (Registry::parser()->forClassAndMethod($className, $methodName) as $metadata) {
Expand Down

0 comments on commit fe933b8

Please sign in to comment.