chobie / php-protocolbuffers

PECL ProtocolBuffers
pecl.php.net/package/protocolbuffers
Other
128 stars 38 forks source link

Fixed an error message about required property #53

Closed superstas closed 4 years ago

superstas commented 9 years ago

Hi there!

I've fixed an error message about required property. 1) There is a data structure:

message Person {
     required uint32 person_id = 1;
}

2) Example of using:

<?php

require "autoload.php";

$person = new \Person();
var_dump($person->serializeToString());

There was error: "the class does not have required property person_id" , but he does.