diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 9cde6ce1..a14ec6bc 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -499,7 +499,7 @@ public function getConfigTreeBuilder() ->enumNode('rfc') ->values([SyslogUdpHandler::RFC5424, SyslogUdpHandler::RFC3164]) ->defaultValue(SyslogUdpHandler::RFC5424) - ->end() // syslogudp + ->end() // syslogudp ->arrayNode('publisher') ->canBeUnset() ->beforeNormalization() diff --git a/Tests/DependencyInjection/ConfigurationTest.php b/Tests/DependencyInjection/ConfigurationTest.php index 9a453b94..25cfdb4f 100644 --- a/Tests/DependencyInjection/ConfigurationTest.php +++ b/Tests/DependencyInjection/ConfigurationTest.php @@ -419,11 +419,13 @@ public function testWithSyslogUdpHandler() 'port' => 514, 'facility' => 'USER', 'level' => 'ERROR', + 'ident' => null, 'rfc' => SyslogUdpHandler::RFC3164 ] ] ] ]; + $config = $this->process($configs); $this->assertEquals('syslogudp', $config['handlers']['syslogudp']['type']); @@ -439,11 +441,13 @@ public function testWithSyslogUdpHandler() 'host' => '127.0.0.1', 'port' => 514, 'facility' => 'USER', + 'ident' => false, 'level' => 'ERROR' ] ] ] ]; + $config = $this->process($configs); $this->assertEquals('syslogudp', $config['handlers']['syslogudp']['type']);