Updated to coding-standard library v1.2.2

This commit is contained in:
Alejandro Celaya
2019-08-01 19:49:54 +02:00
parent 3562afc2bd
commit aff1df32f2
63 changed files with 78 additions and 83 deletions

View File

@@ -14,7 +14,7 @@ class TaskRunnerDelegator implements DelegatorFactoryInterface
ContainerInterface $container,
$name,
callable $callback,
array $options = null
?array $options = null
): HttpServer {
$server = $callback();
$logger = $container->get(LoggerInterface::class);

View File

@@ -9,7 +9,7 @@ use Zend\ServiceManager\Factory\FactoryInterface;
class TaskRunnerFactory implements FactoryInterface
{
public function __invoke(ContainerInterface $container, $requestedName, array $options = null): TaskRunner
public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null): TaskRunner
{
$logger = $container->get(LoggerInterface::class);
return new TaskRunner($logger, $container);

View File

@@ -13,7 +13,7 @@ use function Shlinkio\Shlink\EventDispatcher\asyncListener;
class ListenerProviderFactory implements FactoryInterface
{
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
{
$config = $container->has('config') ? $container->get('config') : [];
$events = $config['events'] ?? [];