Lines Matching refs:create
27 …$serializer->serialize([1, 2], SerializationContext::create()->setInitialType('array')); // [1, 2]
28 …$serializer->serialize([1 => 2], SerializationContext::create()->setInitialType('array')); // {"1…
29 …$serializer->serialize(['a', 'b'], SerializationContext::create()->setInitialType('array')); // […
30 …$serializer->serialize(['c' => 'd'], SerializationContext::create()->setInitialType('array')); // …
33 …$serializer->serialize([], SerializationContext::create()->setInitialType('array<integer>')); // …
34 …$serializer->serialize([1, 2], SerializationContext::create()->setInitialType('array<integer>')); …
35 …$serializer->serialize(['a', 'b'], SerializationContext::create()->setInitialType('array<integer>'…
36 …$serializer->serialize(['c' => 'd'], SerializationContext::create()->setInitialType('array<string>…
39 …$serializer->serialize([], SerializationContext::create()->setInitialType('array<integer,integer>'…
40 …$serializer->serialize([1, 2], SerializationContext::create()->setInitialType('array<integer,integ…
41 …$serializer->serialize(['a', 'b'], SerializationContext::create()->setInitialType('array<integer,i…
42 …$serializer->serialize(['c' => 'd'], SerializationContext::create()->setInitialType('array<string,…