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