File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 21
21
final class Envelope
22
22
{
23
23
/**
24
- * @var array<string, list<StampInterface>>
24
+ * @var array<class- string<StampInterface> , list<StampInterface>>
25
25
*/
26
26
private array $ stamps = [];
27
27
private object $ message ;
@@ -106,7 +106,13 @@ public function last(string $stampFqcn): ?StampInterface
106
106
}
107
107
108
108
/**
109
+ * @template TStamp of StampInterface
110
+ *
111
+ * @param class-string<TStamp>|null $stampFqcn
112
+ *
109
113
* @return StampInterface[]|StampInterface[][] The stamps for the specified FQCN, or all stamps by their class name
114
+ *
115
+ * @psalm-return ($stampFqcn is string : array<class-string<StampInterface>, list<StampInterface>> ? list<TStamp>)
110
116
*/
111
117
public function all (string $ stampFqcn = null ): array
112
118
{
You can’t perform that action at this time.
0 commit comments