@@ -390,7 +390,7 @@ public function __invoke(UndefinedMessage $message)
390
390
391
391
class UndefinedMessageHandlerViaInterface implements MessageSubscriberInterface
392
392
{
393
- public static function getHandledMessages (): array
393
+ public static function getHandledMessages (): iterable
394
394
{
395
395
return array (UndefinedMessage::class);
396
396
}
@@ -427,7 +427,7 @@ public function __invoke(string $message)
427
427
428
428
class HandlerWithMultipleMessages implements MessageSubscriberInterface
429
429
{
430
- public static function getHandledMessages (): array
430
+ public static function getHandledMessages (): iterable
431
431
{
432
432
return array (
433
433
DummyMessage::class,
@@ -442,7 +442,7 @@ public function __invoke()
442
442
443
443
class PrioritizedHandler implements MessageSubscriberInterface
444
444
{
445
- public static function getHandledMessages (): array
445
+ public static function getHandledMessages (): iterable
446
446
{
447
447
return array (
448
448
array (SecondMessage::class, 10 ),
@@ -456,7 +456,7 @@ public function __invoke()
456
456
457
457
class HandlerMappingMethods implements MessageSubscriberInterface
458
458
{
459
- public static function getHandledMessages (): array
459
+ public static function getHandledMessages (): iterable
460
460
{
461
461
return array (
462
462
DummyMessage::class => 'dummyMethod ' ,
@@ -475,7 +475,7 @@ public function secondMessage()
475
475
476
476
class HandlerMappingWithNonExistentMethod implements MessageSubscriberInterface
477
477
{
478
- public static function getHandledMessages (): array
478
+ public static function getHandledMessages (): iterable
479
479
{
480
480
return array (
481
481
DummyMessage::class => 'dummyMethod ' ,
@@ -485,7 +485,7 @@ public static function getHandledMessages(): array
485
485
486
486
class HandleNoMessageHandler implements MessageSubscriberInterface
487
487
{
488
- public static function getHandledMessages (): array
488
+ public static function getHandledMessages (): iterable
489
489
{
490
490
return array ();
491
491
}
0 commit comments