Conditions | 3 |
Paths | 4 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function __construct($text, $extraTexts = null) |
||
17 | { |
||
18 | $extra = []; |
||
19 | if (! is_null($extraTexts)) { |
||
20 | $args = func_get_args(); |
||
21 | $extra = array_slice($args, 1); |
||
22 | } |
||
23 | |||
24 | if (count($extra) >= 4) { |
||
25 | throw CouldNotSendNotification::exceededOfMessages(count($extra) + 1); |
||
26 | } |
||
27 | |||
28 | $this->texts = array_merge([$text], $extra); |
||
|
|||
29 | } |
||
30 | |||
48 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..