| Conditions | 4 | 
| Paths | 3 | 
| Total Lines | 17 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 2 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 19 | public static function useVersion6() | ||
| 20 |     { | ||
| 21 |         if (PHP_MAJOR_VERSION < 7 || !class_exists('\Elastica\Tool\CrossIndex')) { | ||
| 22 | return false; | ||
| 23 | } | ||
| 24 | |||
| 25 | $info = self::getESVersionInfo(); | ||
| 26 | |||
| 27 |         if (null !== $info) { | ||
| 28 |             $versionParts = explode('.', $info['version']['number']); | ||
| 29 | $majorVersion = $versionParts[0]; | ||
| 30 | |||
| 31 | return ($majorVersion > 2); | ||
| 32 | } | ||
| 33 | |||
| 34 | return false; | ||
| 35 | } | ||
| 36 | |||
| 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..