Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add instance_of() and get_class_entry() methods on ZendObject (davidc…
…ole1340#197) * adds `ZendObject::get_class_entry()` to retrieve the class entry of an object without casting pointers * adds `ZendObject::instance_of()` to allow more idiomatic instanceof checks. * adds a mention that `ZendObject::is_instance::<T>()` does not check the parent classes or interfaces. This bit me when I tried to check if `my_object.is_instance::<MyInterface>()` and it didn't work.
- Loading branch information