src/Environaut/Config/Reader/Dom/DomDocument.php
public function xinclude($options = 0)
    {
        $user_error_handling = $this->enableErrorHandling();

        $number_of_xincludes = parent::xinclude($options);

        $this->handleErrors(
            'Resolving XInclude directives in the current document failed. Details are:' . PHP_EOL . PHP_EOL,
            PHP_EOL . 'Please fix the XInclude directives according to the mentioned errors.',
            $user_error_handling
        );

        return $number_of_xincludes;
    }
public function xinclude($options = 0)
    {
        $user_error_handling = $this->enableErrorHandling();

        $number_of_xincludes = parent::xinclude($options);

        $this->handleErrors(
            'Resolving XInclude directives in the current document failed. Details are:' . PHP_EOL . PHP_EOL,
            PHP_EOL . 'Please fix the XInclude directives according to the mentioned errors.',
            $user_error_handling
        );

        return $number_of_xincludes;
    }
Substitutes XIncludes present in the current document.

@param int $options libXml flags to use for loading (like LIBXML_NOCDATA etc.)

@return int number of XIncludes or false if no xincludes were found

@throws \DOMException in case of errors xincluding content