ReflectionMethod::getClosure 返回动态建立的方法调用接口(译者注:可以使用这个返回值直接调用非公开方法) &reftitle.description; public ClosureReflectionMethod::getClosure objectnullobject&null; 调用方法创建闭包。 &reftitle.parameters; object 不可以用于静态方法,可以用于其他类型的方法。 &reftitle.returnvalues; 返回新创建的 Closure &reftitle.errors; 如果 object 为 &null;,但该方法是非静态方法,则抛出 ValueError 如果 object 不是该方法声明的类实例,则抛出 ReflectionException &reftitle.changelog; &Version; &Description; 8.0.0 object 现在可以为 null。 &reftitle.seealso; 头等可调用语法