Skip to content

Commit

Permalink
fix: Fix an annotation error
Browse files Browse the repository at this point in the history
  • Loading branch information
jubianchi committed Oct 7, 2020
1 parent 8ed62a0 commit 0012a55
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/lib/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Parser
private string $originalLabel;

/**
* @var callable
* @var callable(Result): mixed
*/
private $action;

Expand Down Expand Up @@ -107,7 +107,12 @@ public function map(callable $mapper): self
return $parser;
}

public function do(?callable $action): self
/**
* @param callable(Result): mixed $action
*
* @return $this
*/
public function do(callable $action): self
{
$parser = clone $this;
$parser->action = $action;
Expand Down

0 comments on commit 0012a55

Please sign in to comment.