File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ public static function none(): None
35
35
}
36
36
37
37
/**
38
+ * @psalm-pure
38
39
* @template TNew
39
40
* @param TNew|null $value
40
41
* @return Option<TNew>
@@ -47,6 +48,7 @@ public static function fromNullable($value): Option
47
48
}
48
49
49
50
/**
51
+ * @psalm-pure
50
52
* @template T
51
53
* @param list<Option<T>> $options
52
54
* @return Option<list<T>>
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ public static function error($value): Error
37
37
/**
38
38
* Filters and extracts values only of Success results from the given array.
39
39
*
40
+ * @psalm-pure
40
41
* @template S
41
42
* @param list<ResultInterface<S, mixed>> $results
42
43
* @return list<S>
@@ -67,6 +68,7 @@ public static function extractSuccesses(array $results): array
67
68
/**
68
69
* Filters and extracts values only of Error results from the given array.
69
70
*
71
+ * @psalm-pure
70
72
* @template E
71
73
* @param list<ResultInterface<mixed, E>> $results
72
74
* @return list<E>
You can’t perform that action at this time.
0 commit comments