Issue #2866111 by MegaChriz: Fixed private static properties in XmlParserTrait unaccessible in subclasses.