| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class LoggerFactory |
||
| 12 | { |
||
| 13 | private static ?ContainerInterface $container = null; |
||
| 14 | private static self $loggerFactory; |
||
| 15 | |||
| 16 | private function __construct(ContainerInterface $container = null) |
||
| 19 | } |
||
| 20 | |||
| 21 | public static function initialize(ContainerInterface $container = null): void |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get `LoggerInterface` instance. |
||
| 28 | * |
||
| 29 | * @throws RuntimeException If the get object is not an instance of the `LoggerInterface`. |
||
| 30 | * |
||
| 31 | * @return LoggerInterface The `LoggerInterface` instance. |
||
| 32 | * |
||
| 33 | * @psalm-suppress RedundantConditionGivenDocblockType |
||
| 34 | * @psalm-suppress DocblockTypeContradiction |
||
| 35 | */ |
||
| 36 | public static function get(): LoggerInterface |
||
| 50 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.