We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27012ad commit 0abee61Copy full SHA for 0abee61
php_phongo.h
@@ -110,14 +110,14 @@ zend_object_handlers* phongo_get_std_object_handlers(void);
110
} while (0)
111
112
#define PHONGO_DISABLED_CONSTRUCTOR(classname) \
113
- PHP_METHOD(classname, __construct) \
+ static PHP_METHOD(classname, __construct) \
114
{ \
115
PHONGO_PARSE_PARAMETERS_NONE(); \
116
phongo_throw_exception(PHONGO_ERROR_RUNTIME, "Accessing private constructor"); \
117
}
118
119
#define PHONGO_DISABLED_WAKEUP(classname) \
120
- PHP_METHOD(classname, __wakeup) \
+ static PHP_METHOD(classname, __wakeup) \
121
122
123
phongo_throw_exception(PHONGO_ERROR_RUNTIME, "MongoDB\\Driver objects cannot be serialized"); \
0 commit comments