Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Commit

Permalink
Fix missing specifier in sprintf string
Browse files Browse the repository at this point in the history
Fixes PHP 8.0 incompatibility
  • Loading branch information
mdio committed Jul 5, 2022
1 parent de79a3a commit 35565bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/avro/schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 35565bb

Please sign in to comment.