Expect object or string in class_implements