@@ -55,7 +55,8 @@ discard block |
||
| 55 | 55 | $logger = $factory->getLogger(); |
| 56 | 56 | |
| 57 | 57 | $this->container->bind(ConfiguratorInterface::class, new ConfigManager( |
| 58 | - new class() implements LoaderInterface { |
|
| 58 | + new class() implements LoaderInterface |
|
| 59 | + { |
|
| 59 | 60 | public function has(string $section): bool |
| 60 | 61 | { |
| 61 | 62 | return false; |
@@ -85,7 +86,8 @@ discard block |
||
| 85 | 86 | $this->container->get(StrategyBasedBootloadManager::class)->bootload([MonologBootloader::class]); |
| 86 | 87 | $this->container->bind(LogFactory::class, $factory); |
| 87 | 88 | |
| 88 | - $this->container->invoke(function (#[LoggerChannel('foo')] LoggerInterface $logger) { |
|
| 89 | + $this->container->invoke(function (#[LoggerChannel('foo')] LoggerInterface $logger) |
|
| 90 | + { |
|
| 89 | 91 | $this->assertSame('foo', $logger->getName()); |
| 90 | 92 | }); |
| 91 | 93 | } |
@@ -93,7 +95,8 @@ discard block |
||
| 93 | 95 | public function testFinalizerShouldResetDefaultLogger() |
| 94 | 96 | { |
| 95 | 97 | $this->container->bind(ConfiguratorInterface::class, new ConfigManager( |
| 96 | - new class() implements LoaderInterface { |
|
| 98 | + new class() implements LoaderInterface |
|
| 99 | + { |
|
| 97 | 100 | public function has(string $section): bool |
| 98 | 101 | { |
| 99 | 102 | return false; |
@@ -133,7 +136,8 @@ discard block |
||
| 133 | 136 | public function testFinalizerShouldNotResetLoggerWhenApplicationTerminating() |
| 134 | 137 | { |
| 135 | 138 | $this->container->bind(ConfiguratorInterface::class, new ConfigManager( |
| 136 | - new class() implements LoaderInterface { |
|
| 139 | + new class() implements LoaderInterface |
|
| 140 | + { |
|
| 137 | 141 | public function has(string $section): bool |
| 138 | 142 | { |
| 139 | 143 | return false; |