@@ -178,7 +178,7 @@ public function grabLastSentNotification(): ?MessageInterface
178178 * $notifications = $I->grabSentNotifications();
179179 * ```
180180 *
181- * @return MessageEvent []
181+ * @return MessageInterface []
182182 */
183183 public function grabSentNotifications (): array
184184 {
@@ -202,6 +202,9 @@ public function seeNotificationIsSent(int $expectedCount = 1): void
202202 $ this ->assertThat ($ this ->getNotificationEvents (), new NotifierConstraint \NotificationCount ($ expectedCount ));
203203 }
204204
205+ /**
206+ * @return MessageEvent[]
207+ */
205208 public function getNotifierEvents (?string $ transportName = null ): array
206209 {
207210 return $ this ->getNotificationEvents ()->getEvents ($ transportName );
@@ -220,6 +223,9 @@ public function getNotifierEvent(int $index = 0, ?string $transportName = null):
220223 return $ this ->getNotifierEvents ($ transportName )[$ index ] ?? null ;
221224 }
222225
226+ /**
227+ * @return MessageInterface[]
228+ */
223229 public function getNotifierMessages (?string $ transportName = null ): array
224230 {
225231 return $ this ->getNotificationEvents ()->getMessages ($ transportName );
@@ -240,6 +246,7 @@ public function getNotifierMessage(int $index = 0, ?string $transportName = null
240246
241247 protected function getNotificationEvents (): NotificationEvents
242248 {
249+ // @phpstan-ignore if.alwaysFalse
243250 if (version_compare (Kernel::VERSION , '6.2 ' , '< ' )) {
244251 Assert::fail ('Notifier assertions require Symfony 6.2 or higher. ' );
245252 }
0 commit comments