| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.0185 |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | 6 | private static function newCacheInstance($realm) |
|
| 53 | { |
||
| 54 | 6 | if (self::$strategy === self::STRATEGY_REDIS) { |
|
| 55 | 6 | self::$cachedInstances[$realm] = new FlintRedisCacheRedis($realm, self::$options); |
|
| 56 | 4 | } else { |
|
| 57 | self::$cachedInstances[$realm] = new FlintRedisCacheFlintstone($realm, self::$options); |
||
| 58 | } |
||
| 59 | |||
| 60 | 6 | return self::$cachedInstances[$realm]; |
|
| 61 | } |
||
| 62 | } |
||
| 63 |
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..