Skip to content

Commit 0eadbc1

Browse files
committed
[FX] primitive types should serialize with type attribute
1 parent b38f5a9 commit 0eadbc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/avro/schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ static function real_parse($avro, $default_namespace=null, &$schemata=null)
389389
$type));
390390
}
391391
elseif (self::is_primitive_type($avro))
392-
return new AvroPrimitiveSchema($avro);
392+
return new AvroPrimitiveSchema($avro, null, [], true);
393393
else
394394
throw new AvroSchemaParseException(
395395
sprintf('%s is not a schema we know about.',

0 commit comments

Comments
 (0)