Skip to content

Commit

Permalink
Don't add useless namespace use in generated test code wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
mathroc committed Aug 20, 2022
1 parent 94f8094 commit 260e846
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Subscriber/TestExecutor.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ private function uses(Location $location): array

return [
"namespace TH\\Doctest\\Runtime\\{$source->getName()}{$extraNamespacePart}\\Example{$location->index}",
"use {$source->getNamespaceName()}",
$source instanceof \ReflectionClass
? "use {$source->getName()}"
: "use function {$source->getName()}",
Expand Down

0 comments on commit 260e846

Please sign in to comment.