Skip to content

Commit

Permalink
Fix method visibility (#12)
Browse files Browse the repository at this point in the history
The method AvroIODatumReader::skip_data calls the
AvroIOBinaryDecoder::skip_long method, which is protected. The result is
a fatal error.

Change the AvroIOBinaryDecoder::skip_long method visibility from
protected to public as all the others skip_* methods.
  • Loading branch information
xico42 committed Nov 12, 2020
1 parent 257a9ab commit 43e325e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/avro/datum.php
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ public function skip_boolean() { return $this->skip(1); }

public function skip_int() { return $this->skip_long(); }

protected function skip_long()
public function skip_long()
{
$b = ord($this->next_byte());
while ('' == $b || 0 != ($b & 0x80))
Expand Down

0 comments on commit 43e325e

Please sign in to comment.