Skip to content

Commit af3d4a5

Browse files
committedDec 1, 2024··
fix psalm errors
1 parent c129143 commit af3d4a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/Attempt.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,9 @@ public function match(callable $result, callable $error)
130130
*/
131131
public function unwrap(): mixed
132132
{
133+
/** @var T */
133134
return $this->match(
134-
static fn($value) => $value,
135+
static fn(mixed $value): mixed => $value,
135136
static fn($e) => throw $e,
136137
);
137138
}

0 commit comments

Comments
 (0)
Please sign in to comment.