summaryrefslogtreecommitdiff
path: root/include/class.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/class.h')
-rw-r--r--include/class.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/class.h b/include/class.h
index 9257213..e11074c 100644
--- a/include/class.h
+++ b/include/class.h
@@ -555,10 +555,12 @@ private:
}
/**
- * Namespaces have access to the private base class, so that the classes
- * can be registered.
+ * Namespaces and the function have access to the private base class,
+ * so that the classes can be registered (the function object needs
+ * this to register the Functor class).
*/
friend class Namespace;
+ friend class Function;
/**
* All Php::Class<AnyThing> also need access to the base class to