• Brent Shaffer's avatar
    PHP array constructors for protobuf messages (#4530) · f1911f37
    Brent Shaffer authored
    * PHP array constructors for protobuf messages
    
    * removes Descriptor from error message
    
    * allows mergeFrom to accept an array
    
    * only use initWithDescriptor if instanceof MapEntry
    
    * adds doc comments
    
    * removes ability for constructors to take arrays for submessages
    
    * Revert "allows mergeFrom to accept an array"
    
    This reverts commit b7b72182d561634af12c5c5c56a7cda3b33241f9.
    
    * makes mergeFromArray protected and fixes mergeFrom whitespace
    
    * Separates merging from JSON and merging from PHP array
    
    * removes well-known types and json keys from array construction
    
    * Addresses PR review comments
    
    * cleans up tests
    
    * fixes exception messages
    f1911f37
EnumValueDescriptorProto.php 3.32 KB