Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | private static function getESVersionInfo() |
||
41 | { |
||
42 | try { |
||
43 | if (null === self::$esClientInfo) { |
||
44 | $client = ClientBuilder::create()->build(); |
||
45 | self::$esClientInfo = $client->info(); |
||
46 | } |
||
47 | } catch (NoNodesAvailableException $e) { |
||
48 | self::$esClientInfo = null; |
||
|
|||
49 | } |
||
50 | |||
51 | return self::$esClientInfo; |
||
52 | } |
||
53 | } |
||
54 |
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..