8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Envelope::last()
1 parent 626d9aa commit bbdc403Copy full SHA for bbdc403
src/Symfony/Component/Messenger/Envelope.php
@@ -94,6 +94,13 @@ public function withoutStampsOfType(string $type): self
94
return $cloned;
95
}
96
97
+ /**
98
+ * @template TStamp of StampInterface
99
+ *
100
+ * @param class-string<TStamp> $stampFqcn
101
102
+ * @return TStamp|null
103
+ */
104
public function last(string $stampFqcn): ?StampInterface
105
{
106
return isset($this->stamps[$stampFqcn = $this->resolveAlias($stampFqcn)]) ? end($this->stamps[$stampFqcn]) : null;
0 commit comments