| 1 | <?php | ||
| 18 | class AbstractHttpStrategyProxy extends AbstractHttpStrategy | ||
| 19 | { | ||
| 20 | /** | ||
| 21 |      * {@inheritdoc} | ||
| 22 | * | ||
| 23 | * @param string $header header | ||
| 24 | * @param string $fieldName field name | ||
| 25 | * | ||
| 26 | * @return string | ||
| 27 | */ | ||
| 28 | public function extractFieldInfo($header, $fieldName) | ||
| 32 | |||
| 33 | /** | ||
| 34 |      * {@inheritdoc} | ||
| 35 | * | ||
| 36 | * @param string $header header | ||
| 37 | * @param string $fieldName field name | ||
| 38 | * | ||
| 39 | * @return void | ||
| 40 | */ | ||
| 41 | public function validateField($header, $fieldName) | ||
| 45 | |||
| 46 | /** | ||
| 47 |      * {@inheritdoc} | ||
| 48 | * | ||
| 49 | * @param Request $request request | ||
| 50 | * | ||
| 51 | * @return void | ||
| 52 | */ | ||
| 53 | public function apply(Request $request) | ||
| 56 | |||
| 57 | /** | ||
| 58 | * @inheritDoc | ||
| 59 | * | ||
| 60 | * @return array | ||
| 61 | */ | ||
| 62 | public function getRoles() | ||
| 66 | } | ||
| 67 | 
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: