[DI] XmlFileLoader bad error message #35886
Labels
Bug
DependencyInjection
DX
DX = Developer eXperience (anything that improves the experience of using Symfony)
Today we debugged an error message coming from
XmlFileLoader
in the DI component:Coming from
symfony/src/Symfony/Component/Config/Util/XmlUtils.php
Lines 125 to 128 in 421c7f8
The file is not empty :) removing the
@
reveals the true error:So if
$content
is false (before trim casts to string) we cant assume an empty file. Ideally the original errors bubbles up.The text was updated successfully, but these errors were encountered: