remove redundant is_map

pull/17788/head
Brent Shaffer 3 months ago
parent f963fe5669
commit 084c87dc12
  1. 2
      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) {

Loading…
Cancel
Save