Skip to content

Commit

Permalink
fix psalm errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Baptouuuu committed Dec 1, 2024
1 parent c129143 commit af3d4a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Attempt.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ public function match(callable $result, callable $error)
*/
public function unwrap(): mixed
{
/** @var T */
return $this->match(
static fn($value) => $value,
static fn(mixed $value): mixed => $value,
static fn($e) => throw $e,
);
}
Expand Down

0 comments on commit af3d4a5

Please sign in to comment.