diff options
Diffstat (limited to 'zend/callable.h')
-rw-r--r-- | zend/callable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zend/callable.h b/zend/callable.h index 9d7e69b..9958a2a 100644 --- a/zend/callable.h +++ b/zend/callable.h @@ -177,7 +177,7 @@ protected: // this parameter is a regular type info->class_name = arg.type() == Type::Object ? arg.classname() : nullptr; - info->class_name_len = arg.type() == Type::Object ? ::strlen(arg.classname()) : 0; + info->class_name_len = arg.type() == Type::Object && arg.classname() ? ::strlen(arg.classname()) : 0; info->allow_null = arg.allowNull(); info->pass_by_reference = arg.byReference(); } |