@@ -75,7 +75,7 @@ public function testCreate(Constraint $constraint, ApiProperty $propertyMetadata
7575
7676 public static function createProvider (): \Generator
7777 {
78- yield 'empty ' => [new Collection ([]), new ApiProperty (), ['type ' => 'object ' , 'properties ' => [] , 'additionalProperties ' => false ]];
78+ yield 'empty ' => [new Collection ([]), new ApiProperty (), ['type ' => 'object ' , 'properties ' => new \ ArrayObject () , 'additionalProperties ' => false ]];
7979
8080 $ fields = [
8181 'name ' => new Required ([
@@ -100,13 +100,13 @@ public static function createProvider(): \Generator
100100 ],
101101 ]),
102102 ];
103- $ properties = [
103+ $ properties = new \ ArrayObject ( [
104104 'name ' => new \ArrayObject (),
105105 'email ' => ['minLength ' => 2 , 'maxLength ' => 255 , 'format ' => 'email ' ],
106106 'phone ' => ['pattern ' => '^([+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*)$ ' ],
107107 'age ' => ['exclusiveMinimum ' => 0 ],
108- 'social ' => ['type ' => 'object ' , 'properties ' => ['githubUsername ' => new \ArrayObject ()], 'additionalProperties ' => false , 'required ' => ['githubUsername ' ]],
109- ];
108+ 'social ' => ['type ' => 'object ' , 'properties ' => new \ ArrayObject ( ['githubUsername ' => new \ArrayObject ()]) , 'additionalProperties ' => false , 'required ' => ['githubUsername ' ]],
109+ ]) ;
110110 $ required = ['name ' , 'email ' , 'social ' ];
111111
112112 yield 'with fields ' => [
0 commit comments