Skip to content

Commit

Permalink
Fix issue drslump#19. Support extended fields defined inside messages
Browse files Browse the repository at this point in the history
  • Loading branch information
drslump committed Sep 19, 2012
1 parent 5d13633 commit 4be121d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/DrSlump/Protobuf/Compiler/PhpGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ protected function compileMessage(proto\DescriptorProto $msg, $ns)
// Collect extensions
if ($msg->hasExtension()) {
foreach ($msg->getExtensionList() as $field) {
$this->_extensions[$field->getExtendee()][] = array($ns, $field);
$this->extensions[$field->getExtendee()][] = array($ns, $field);
}
}

Expand Down

0 comments on commit 4be121d

Please sign in to comment.