diff --git a/src/Support/Generator/Types/MixedType.php b/src/Support/Generator/Types/MixedType.php index 670791e2..bc9a0223 100644 --- a/src/Support/Generator/Types/MixedType.php +++ b/src/Support/Generator/Types/MixedType.php @@ -2,8 +2,6 @@ namespace Dedoc\Scramble\Support\Generator\Types; -use JsonSerializable; - class MixedType extends Type { public function __construct() @@ -14,6 +12,6 @@ public function __construct() public function toArray() { // Yes. It is not an array. I live with it. - return (object)[]; + return (object) []; } } diff --git a/tests/TypeToSchemaTransformerTest.php b/tests/TypeToSchemaTransformerTest.php index e9d0a74d..54d4dda9 100644 --- a/tests/TypeToSchemaTransformerTest.php +++ b/tests/TypeToSchemaTransformerTest.php @@ -33,7 +33,7 @@ [new LiteralStringType('wow'), ['type' => 'string', 'example' => 'wow']], [new LiteralFloatType(157.50), ['type' => 'number', 'example' => 157.5]], [new BooleanType, ['type' => 'boolean']], - [new MixedType, (object)[]], + [new MixedType, (object) []], [new ArrayType(value: new StringType), ['type' => 'array', 'items' => ['type' => 'string']]], [new KeyedArrayType([ new ArrayItemType_('key', new IntegerType),