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