Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
19 | public function __construct($wsdl, array $options = []) |
||
20 | { |
||
21 | if (!array_key_exists('log_file', $options)) { |
||
22 | throw new Exception("Debug soap client requires a log file path provided as {$options['log_file']} to work"); |
||
23 | } |
||
24 | |||
25 | $this->logFile = fopen($options['log_file'], "w+"); |
||
|
|||
26 | |||
27 | $options['trace'] = 1; |
||
28 | |||
29 | return parent::__construct($wsdl, $options); |
||
30 | } |
||
31 | |||
55 |
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..