avoid yield in magic method for hhvm

avoid "Fatal error: 'yield' is not allowed in constructor, destructor, or magic methods" in hhvm.