Adding a shim back for enableMagicMethods() to prevent BC