Skip to content

Commit 0abee61

Browse files
committed
Make disabled constructor/wakeup methods static
1 parent 27012ad commit 0abee61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

php_phongo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,14 @@ zend_object_handlers* phongo_get_std_object_handlers(void);
110110
} while (0)
111111

112112
#define PHONGO_DISABLED_CONSTRUCTOR(classname) \
113-
PHP_METHOD(classname, __construct) \
113+
static PHP_METHOD(classname, __construct) \
114114
{ \
115115
PHONGO_PARSE_PARAMETERS_NONE(); \
116116
phongo_throw_exception(PHONGO_ERROR_RUNTIME, "Accessing private constructor"); \
117117
}
118118

119119
#define PHONGO_DISABLED_WAKEUP(classname) \
120-
PHP_METHOD(classname, __wakeup) \
120+
static PHP_METHOD(classname, __wakeup) \
121121
{ \
122122
PHONGO_PARSE_PARAMETERS_NONE(); \
123123
phongo_throw_exception(PHONGO_ERROR_RUNTIME, "MongoDB\\Driver objects cannot be serialized"); \

0 commit comments

Comments
 (0)