From 273ad6a1f4bec5360bf7635197cb28fc4b55c24a Mon Sep 17 00:00:00 2001 From: Toon Schoenmakers Date: Mon, 18 May 2015 11:24:04 +0200 Subject: The Value::get(int) method now works on objects that implemented ArrayAccess as well --- include/value.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/value.h b/include/value.h index 97b1509..9959a9c 100644 --- a/include/value.h +++ b/include/value.h @@ -1002,7 +1002,7 @@ public: * @param name Name of the function * @return Value */ - Value call(const char *name); + Value call(const char *name) const; /** * @@ -1012,7 +1012,7 @@ public: * @return Value */ template - Value call(const char *name, Args&&... args) + Value call(const char *name, Args&&... args) const { // store arguments Value vargs[] = { static_cast(args)... }; @@ -1107,7 +1107,7 @@ private: * @param argv The parameters * @return Value */ - Value exec(const char *name, int argc, struct _zval_struct ***params); + Value exec(const char *name, int argc, struct _zval_struct ***params) const; /** * Refcount - the number of references to the value -- cgit v1.2.3