Skip to content

Commit 3d7cbf3

Browse files
Merge branch '2.7' into 2.8
* 2.7: Clean calls to http_build_query() [HttpFoundation] Fix missing "throw" in JsonResponse Improve the documentation of Suppress warning from sapi_windows_vt100_support on stream other than STDIO removed extra-verbose comments Fixes #26136: Avoid emitting warning in hasParameterOption() Added a README entry to the PR template [HttpFoundation] Add x-zip-compressed to MimeTypeExtensionGuesser. [DI] Add null check for removeChild
2 parents 942f9da + ae8effd commit 3d7cbf3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Loader/XmlFileLoader.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,9 @@ private function processAnonymousServices(\DOMDocument $xml, $file)
347347
$domElement->parentNode->replaceChild($tmpDomElement, $domElement);
348348
$tmpDomElement->setAttribute('id', $id);
349349
} else {
350-
$domElement->parentNode->removeChild($domElement);
350+
if (null !== $domElement->parentNode) {
351+
$domElement->parentNode->removeChild($domElement);
352+
}
351353
}
352354
}
353355
}

0 commit comments

Comments
 (0)