1 | <?php |
||
21 | class GeneratePage extends SymfonyPage implements GeneratePageInterface |
||
22 | { |
||
23 | public function generate() |
||
27 | |||
28 | /** |
||
29 | * {@inheritdoc} |
||
30 | */ |
||
31 | public function specifyPrice($nth, $price) |
||
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | public function nameCode($nth, $code) |
||
43 | |||
44 | /** |
||
45 | * {@inheritdoc} |
||
46 | */ |
||
47 | public function removeVariant($nth) |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function getRouteName() |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | * |
||
65 | * @throws ElementNotFoundException |
||
66 | */ |
||
67 | public function getValidationMessage($element, $position) |
||
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | protected function getDefinedElements() |
||
88 | |||
89 | /** |
||
90 | * @param NodeElement $element |
||
91 | * |
||
92 | * @return NodeElement |
||
93 | * |
||
94 | * @throws ElementNotFoundException |
||
95 | */ |
||
96 | private function getValidatedField(NodeElement $element) |
||
104 | } |
||
105 |
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: