| 1 | <?php |
||
| 14 | class PutIndexSettingsHandler |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var IndexConfigurationRepository |
||
| 18 | */ |
||
| 19 | private $configurationRepository; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param IndexConfigurationRepository $configurationRepository |
||
| 23 | */ |
||
| 24 | public function __construct(IndexConfigurationRepository $configurationRepository) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Handle index creation command |
||
| 31 | * |
||
| 32 | * @param Client $client |
||
| 33 | * @param string $index |
||
| 34 | */ |
||
| 35 | public function handle($client, $index) |
||
| 53 | |||
| 54 | private function extractSettings($config) |
||
| 62 | } |
||
| 63 |
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: