Conditions | 3 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | 18 | public function __invoke(ContainerInterface $container): ErrorHandler |
|
35 | { |
||
36 | 18 | $throwableHandler = $container->get(ThrowableHandlerInterface::class); |
|
37 | |||
38 | 17 | $phpErrorHandler = $container->has(PhpErrorHandlerInterface::class) ? |
|
39 | 17 | $container->get(PhpErrorHandlerInterface::class) : null; |
|
40 | |||
41 | 17 | $shutdownHandler = $container->has(ShutdownHandlerInterface::class) ? |
|
42 | 17 | $container->get(ShutdownHandlerInterface::class) : null; |
|
43 | |||
44 | 17 | return new ErrorHandler($throwableHandler, $phpErrorHandler, $shutdownHandler); |
|
45 | } |
||
47 |