summaryrefslogtreecommitdiff
path: root/include/classbase.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/classbase.h')
-rw-r--r--include/classbase.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/classbase.h b/include/classbase.h
index a9d9ef5..e664105 100644
--- a/include/classbase.h
+++ b/include/classbase.h
@@ -79,16 +79,17 @@ public:
/**
* Construct a new instance of the object
+ * @param value
* @return Base
*/
- Base* construct(struct _zend_object *object)
+ Base* construct(Value &&value)
{
// construct the base
auto *result = construct();
if (!result) return nullptr;
// assign the zend object to it
- result->assign(object);
+ result->assign(std::move(value));
// done
return result;