| 1 | <?php |
||
| 16 | class RackspaceFsComponent extends AbstractFsComponent |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | public $endpoint; |
||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | public $username; |
||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | public $apiKey; |
||
| 30 | /** |
||
| 31 | * @var string |
||
| 32 | */ |
||
| 33 | public $region; |
||
| 34 | /** |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | public $container; |
||
| 38 | /** |
||
| 39 | * @var string|null |
||
| 40 | */ |
||
| 41 | public $prefix; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @inheritdoc |
||
| 45 | */ |
||
| 46 | public function init() |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return RackspaceAdapter |
||
| 68 | */ |
||
| 69 | protected function initAdapter() |
||
| 81 | } |
||
| 82 |
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: