Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Dec 28, 2024
1 parent 3e27f94 commit aee7f1a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 25 deletions.
16 changes: 15 additions & 1 deletion src/Compat/LoggerAbstractServiceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@

namespace ErrorHeroModule\Compat;

class LoggerAbstractServiceFactory extends LoggerServiceFactory
use Psr\Container\ContainerInterface;

class LoggerAbstractServiceFactory extends \Laminas\Log\LoggerAbstractServiceFactory
{
/**
* {@inheritdoc}
*/
public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)

Check failure on line 14 in src/Compat/LoggerAbstractServiceFactory.php

View workflow job for this annotation

GitHub Actions / PHP 8.1

Method ErrorHeroModule\Compat\LoggerAbstractServiceFactory::__invoke() has parameter $options with no value type specified in iterable type array.

Check failure on line 14 in src/Compat/LoggerAbstractServiceFactory.php

View workflow job for this annotation

GitHub Actions / PHP 8.2

Method ErrorHeroModule\Compat\LoggerAbstractServiceFactory::__invoke() has parameter $options with no value type specified in iterable type array.

Check failure on line 14 in src/Compat/LoggerAbstractServiceFactory.php

View workflow job for this annotation

GitHub Actions / PHP 8.3

Method ErrorHeroModule\Compat\LoggerAbstractServiceFactory::__invoke() has parameter $options with no value type specified in iterable type array.

Check failure on line 14 in src/Compat/LoggerAbstractServiceFactory.php

View workflow job for this annotation

GitHub Actions / PHP 8.4

Method ErrorHeroModule\Compat\LoggerAbstractServiceFactory::__invoke() has parameter $options with no value type specified in iterable type array.
{
$config = $this->getConfig($container);
$config = $config[$requestedName];

$this->processConfig($config, $container);

Check failure on line 19 in src/Compat/LoggerAbstractServiceFactory.php

View workflow job for this annotation

GitHub Actions / PHP 8.1

Parameter #1 $config of method Laminas\Log\LoggerServiceFactory::processConfig() expects array, mixed given.

Check failure on line 19 in src/Compat/LoggerAbstractServiceFactory.php

View workflow job for this annotation

GitHub Actions / PHP 8.2

Parameter #1 $config of method Laminas\Log\LoggerServiceFactory::processConfig() expects array, mixed given.

Check failure on line 19 in src/Compat/LoggerAbstractServiceFactory.php

View workflow job for this annotation

GitHub Actions / PHP 8.3

Parameter #1 $config of method Laminas\Log\LoggerServiceFactory::processConfig() expects array, mixed given.

Check failure on line 19 in src/Compat/LoggerAbstractServiceFactory.php

View workflow job for this annotation

GitHub Actions / PHP 8.4

Parameter #1 $config of method Laminas\Log\LoggerServiceFactory::processConfig() expects array, mixed given.

return new Logger($config);
}
}
24 changes: 0 additions & 24 deletions src/Compat/LoggerServiceFactory.php

This file was deleted.

0 comments on commit aee7f1a

Please sign in to comment.