1 | <?php |
||
18 | final class HydrateDocumentBench extends BaseBench |
||
19 | { |
||
20 | /** @var array */ |
||
21 | private static $data; |
||
22 | |||
23 | /** @var array */ |
||
24 | private static $embedOneData; |
||
25 | |||
26 | /** @var array */ |
||
27 | private static $embedManyData; |
||
28 | |||
29 | /** @var array */ |
||
30 | private static $referenceOneData; |
||
31 | |||
32 | /** @var array */ |
||
33 | private static $referenceManyData; |
||
34 | |||
35 | /** @var HydratorInterface */ |
||
36 | private static $hydrator; |
||
37 | |||
38 | public function init() |
||
82 | |||
83 | /** |
||
84 | * @Warmup(2) |
||
85 | */ |
||
86 | public function benchHydrateDocument() |
||
90 | |||
91 | /** |
||
92 | * @Warmup(2) |
||
93 | */ |
||
94 | public function benchHydrateDocumentWithEmbedOne() |
||
98 | |||
99 | /** |
||
100 | * @Warmup(2) |
||
101 | */ |
||
102 | public function benchHydrateDocumentWithEmbedMany() |
||
106 | |||
107 | /** |
||
108 | * @Warmup(2) |
||
109 | */ |
||
110 | public function benchHydrateDocumentWithReferenceOne() |
||
114 | |||
115 | /** |
||
116 | * @Warmup(2) |
||
117 | */ |
||
118 | public function benchHydrateDocumentWithReferenceMany() |
||
122 | } |
||
123 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: