Skip to content

Commit dfeee20

Browse files
committed
fix intendation, check ident parameter emptiness
1 parent c4393a5 commit dfeee20

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
@@ -491,7 +491,7 @@ public function getConfigTreeBuilder()
491491
->enumNode('rfc')
492492
->values([SyslogUdpHandler::RFC5424, SyslogUdpHandler::RFC3164])
493493
->defaultValue(SyslogUdpHandler::RFC5424)
494-
->end() // syslogudp
494+
->end() // syslogudp
495495
->arrayNode('publisher')
496496
->canBeUnset()
497497
->beforeNormalization()

Tests/DependencyInjection/ConfigurationTest.php

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

428430
$this->assertEquals('syslogudp', $config['handlers']['syslogudp']['type']);
@@ -438,11 +440,13 @@ public function testWithSyslogUdpHandler()
438440
'host' => '127.0.0.1',
439441
'port' => 514,
440442
'facility' => 'USER',
443+
'ident' => false,
441444
'level' => 'ERROR'
442445
]
443446
]
444447
]
445448
];
449+
446450
$config = $this->process($configs);
447451

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

0 commit comments

Comments
 (0)