Skip to content

Commit 0e5f93e

Browse files
committed
fix intendation, check ident parameter emptiness
1 parent 285fd77 commit 0e5f93e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ public function getConfigTreeBuilder()
499499
->enumNode('rfc')
500500
->values([SyslogUdpHandler::RFC5424, SyslogUdpHandler::RFC3164])
501501
->defaultValue(SyslogUdpHandler::RFC5424)
502-
->end() // syslogudp
502+
->end() // syslogudp
503503
->arrayNode('publisher')
504504
->canBeUnset()
505505
->beforeNormalization()

Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,11 +419,13 @@ public function testWithSyslogUdpHandler()
419419
'port' => 514,
420420
'facility' => 'USER',
421421
'level' => 'ERROR',
422+
'ident' => null,
422423
'rfc' => SyslogUdpHandler::RFC3164
423424
]
424425
]
425426
]
426427
];
428+
427429
$config = $this->process($configs);
428430

429431
$this->assertEquals('syslogudp', $config['handlers']['syslogudp']['type']);
@@ -439,11 +441,13 @@ public function testWithSyslogUdpHandler()
439441
'host' => '127.0.0.1',
440442
'port' => 514,
441443
'facility' => 'USER',
444+
'ident' => false,
442445
'level' => 'ERROR'
443446
]
444447
]
445448
]
446449
];
450+
447451
$config = $this->process($configs);
448452

449453
$this->assertEquals('syslogudp', $config['handlers']['syslogudp']['type']);

0 commit comments

Comments
 (0)