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 c225da7 commit 158d8acCopy full SHA for 158d8ac
php/ext/google/protobuf/def.c
@@ -395,7 +395,7 @@ PHP_METHOD(FieldDescriptor, getNumber) {
395
* Returns the label of this field as an integer.
396
*/
397
PHP_METHOD(FieldDescriptor, getLabel) {
398
- zend_error(E_USER_WARNING,
+ zend_error(E_USER_DEPRECATED,
399
"getLabel is deprecated. Use isRequired or isRepeated instead.\n");
400
FieldDescriptor* intern = (FieldDescriptor*)Z_OBJ_P(getThis());
401
RETURN_LONG(upb_FieldDef_Label(intern->fielddef));
0 commit comments