From 084c87dc12da44000900364218269db3ac845601 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Mon, 19 Aug 2024 20:14:53 -0700 Subject: [PATCH] remove redundant is_map --- src/google/protobuf/compiler/php/php_generator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google/protobuf/compiler/php/php_generator.cc b/src/google/protobuf/compiler/php/php_generator.cc index 09d9fb3d9acde..f896d4e187734 100644 --- a/src/google/protobuf/compiler/php/php_generator.cc +++ b/src/google/protobuf/compiler/php/php_generator.cc @@ -220,7 +220,7 @@ std::string DefaultForField(const FieldDescriptor* field) { } std::string DeprecatedConditionalForField(const FieldDescriptor* field) { - if (field->is_repeated() || field->is_map()) { + if (field->is_repeated()) { return absl::StrCat("$this->", field->name(), "->count() !== 0"); } if (field->real_containing_oneof() != nullptr) {