1 | <?php |
||
19 | class SelfValueTransformer extends BaseSourceTransformer |
||
20 | { |
||
21 | /** |
||
22 | * This method may transform the supplied source and return a new replacement for it |
||
23 | * |
||
24 | * @param StreamMetaData $metadata Metadata for source |
||
25 | * @return string See RESULT_XXX constants in the interface |
||
26 | */ |
||
27 | 1 | public function transform(StreamMetaData $metadata) |
|
39 | |||
40 | /** |
||
41 | * Adjusts tokens in the source code |
||
42 | * |
||
43 | * @param StreamMetaData $metadata |
||
44 | * @param FullyQualified[] $replacedNodes Replaced nodes in the source code |
||
45 | */ |
||
46 | 1 | private function adjustSelfTokens(StreamMetaData $metadata, array $replacedNodes) |
|
54 | } |
||
55 |
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: