Skip to content

Commit

Permalink
Update Annotation.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar authored May 3, 2022
1 parent b47df58 commit 486e0c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Annotation.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function exceptions(string $controller, ?string $method = null): Collecti
->filter();
}

public function response(string $controller, ?string $method = null): ?Returns
public function response(string $controller, ?string $method = null)
{
return $this->get(function (DocBlock $doc) {
$returns = array_map(static fn (Return_ $tag) => Returns::make($tag), $this->getTagsByName($doc, 'return'));
Expand Down

0 comments on commit 486e0c0

Please sign in to comment.