@@ -387,7 +387,7 @@ public function __invoke(UndefinedMessage $message)
387
387
388
388
class UndefinedMessageHandlerViaInterface implements MessageSubscriberInterface
389
389
{
390
- public static function getHandledMessages (): array
390
+ public static function getHandledMessages (): iterable
391
391
{
392
392
return array (UndefinedMessage::class);
393
393
}
@@ -424,7 +424,7 @@ public function __invoke(string $message)
424
424
425
425
class HandlerWithMultipleMessages implements MessageSubscriberInterface
426
426
{
427
- public static function getHandledMessages (): array
427
+ public static function getHandledMessages (): iterable
428
428
{
429
429
return array (
430
430
DummyMessage::class,
@@ -439,7 +439,7 @@ public function __invoke()
439
439
440
440
class PrioritizedHandler implements MessageSubscriberInterface
441
441
{
442
- public static function getHandledMessages (): array
442
+ public static function getHandledMessages (): iterable
443
443
{
444
444
return array (
445
445
array (SecondMessage::class, 10 ),
@@ -453,7 +453,7 @@ public function __invoke()
453
453
454
454
class HandlerMappingMethods implements MessageSubscriberInterface
455
455
{
456
- public static function getHandledMessages (): array
456
+ public static function getHandledMessages (): iterable
457
457
{
458
458
return array (
459
459
DummyMessage::class => 'dummyMethod ' ,
@@ -472,7 +472,7 @@ public function secondMessage()
472
472
473
473
class HandlerMappingWithNonExistentMethod implements MessageSubscriberInterface
474
474
{
475
- public static function getHandledMessages (): array
475
+ public static function getHandledMessages (): iterable
476
476
{
477
477
return array (
478
478
DummyMessage::class => 'dummyMethod ' ,
@@ -482,7 +482,7 @@ public static function getHandledMessages(): array
482
482
483
483
class HandleNoMessageHandler implements MessageSubscriberInterface
484
484
{
485
- public static function getHandledMessages (): array
485
+ public static function getHandledMessages (): iterable
486
486
{
487
487
return array ();
488
488
}
0 commit comments