From 35565bb7f5aa85acbf7eeee8c1683a0da3cd6c2c Mon Sep 17 00:00:00 2001 From: Michael Diodone Date: Tue, 5 Jul 2022 10:20:33 +0200 Subject: [PATCH] Fix missing specifier in sprintf string Fixes PHP 8.0 incompatibility --- lib/avro/schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/avro/schema.php b/lib/avro/schema.php index 24c9d59..a492e34 100644 --- a/lib/avro/schema.php +++ b/lib/avro/schema.php @@ -1161,7 +1161,7 @@ public function __construct($name, $doc, $symbols, &$schemata=null, $logical_typ foreach ($symbols as $symbol) if (!is_string($symbol) || empty($symbol)) throw new AvroSchemaParseException( - sprintf('Enum schema symbol must be a string %', + sprintf('Enum schema symbol must be a string %s', print_r($symbol, true))); parent::__construct(AvroSchema::ENUM_SCHEMA, $name, $doc, $schemata, $logical_type, $extra_attributes);