Skip to content

Commit

Permalink
update for interface change
Browse files Browse the repository at this point in the history
  • Loading branch information
iampersistent committed Aug 20, 2023
1 parent 9ad678d commit 8669049
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Factory/CommunicationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ class CommunicationFactory implements AbstractFactoryInterface
{
use CommunicationFactoryTrait;

public function canCreate(ContainerInterface $container, $requestedName)
public function canCreate(ContainerInterface $container, $requestedName): bool
{
return (is_a($requestedName, Communication::class, true));
}

public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
public function __invoke(ContainerInterface $container, $requestedName, array $options = null): mixed
{
$config = $container->get('config')['communication'];
$notificationFactories = $this->getNotificationFactories($container, $config['channel']);
Expand Down
2 changes: 1 addition & 1 deletion src/Factory/EmailBusLocatorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function __construct(
private string $busIdentifier,
) { }

public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
public function __invoke(ContainerInterface $container, $requestedName, array $options = null): mixed
{
$options = Util::messageBusOptions($container, $this->busIdentifier);

Expand Down
2 changes: 1 addition & 1 deletion src/Factory/MessageHandlerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __construct(string $transport)
$this->transport = $transport;
}

public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
public function __invoke(ContainerInterface $container, $requestedName, array $options = null): mixed
{
$transport = $container->get($this->transport);

Expand Down

0 comments on commit 8669049

Please sign in to comment.