Skip to content

Commit 657a4eb

Browse files
committed
Fix inconsistent return points.
1 parent a7312a5 commit 657a4eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Loader/XmlFileLoader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ private function parseConfigs(\DOMElement $node, $path)
261261
private function parseDefaultsConfig(\DOMElement $element, $path)
262262
{
263263
if ($this->isElementValueNull($element)) {
264-
return;
264+
return null;
265265
}
266266

267267
// Check for existing element nodes in the default element. There can
@@ -298,7 +298,7 @@ private function parseDefaultsConfig(\DOMElement $element, $path)
298298
private function parseDefaultNode(\DOMElement $node, $path)
299299
{
300300
if ($this->isElementValueNull($node)) {
301-
return;
301+
return null;
302302
}
303303

304304
switch ($node->localName) {

0 commit comments

Comments
 (0)