Bugfix on inherit private magic methods

`@return `void`