ReflectionMethod::getClosure Returns a dynamically created closure for the method &reftitle.description; public ClosureReflectionMethod::getClosure objectnullobject&null; Create a closure which will call the method. &reftitle.parameters; object Forbidden for static methods, required for other methods. &reftitle.returnvalues; Returns the newly created Closure. &reftitle.errors; Throws a ValueError if object is &null; but the method is non-static. Throws a ReflectionException if object is not an instance of the class this method was declared in. &reftitle.changelog; &Version; &Description; 8.0.0 object is now nullable. &reftitle.seealso; First class callable syntax