From 43e325e176e6179df77b230de565a34223bbd299 Mon Sep 17 00:00:00 2001 From: Francisco Edno Date: Thu, 12 Nov 2020 03:13:15 -0300 Subject: [PATCH] Fix method visibility (#12) 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. --- lib/avro/datum.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/avro/datum.php b/lib/avro/datum.php index e0dc286..1a17a06 100644 --- a/lib/avro/datum.php +++ b/lib/avro/datum.php @@ -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))