| Conditions | 6 |
| Paths | 6 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | public function init() |
||
| 47 | { |
||
| 48 | if ($this->endpoint === null) { |
||
| 49 | throw new InvalidConfigException('The "endpoint" property must be set.'); |
||
| 50 | } |
||
| 51 | if ($this->username === null) { |
||
| 52 | throw new InvalidConfigException('The "username" property must be set.'); |
||
| 53 | } |
||
| 54 | if ($this->apiKey === null) { |
||
| 55 | throw new InvalidConfigException('The "apiKey" property must be set.'); |
||
| 56 | } |
||
| 57 | if ($this->region === null) { |
||
| 58 | throw new InvalidConfigException('The "region" property must be set.'); |
||
| 59 | } |
||
| 60 | if ($this->container === null) { |
||
| 61 | throw new InvalidConfigException('The "container" property must be set.'); |
||
| 62 | } |
||
| 63 | parent::init(); |
||
| 64 | } |
||
| 65 | |||
| 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: