| 1 | <?php |
||
| 23 | final class HeaderMapAnnotHandler implements AnnotationHandler |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * Adds header map param handler |
||
| 27 | * |
||
| 28 | * @param AbstractAnnotation $annotation The annotation to handle |
||
| 29 | * @param ServiceMethodBuilder $serviceMethodBuilder Used to construct a [@see ServiceMethod] |
||
| 30 | * @param null|Converter|StringConverter $converter Converter used to convert types before sending to service method |
||
| 31 | * @param int|null $index The position of the parameter or null if annotation does not reference parameter |
||
| 32 | * @return void |
||
| 33 | */ |
||
| 34 | public function handle( |
||
| 42 | } |
||
| 43 |
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: