| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | public function handleQuery(Query $query, callable $next, callable $first) |
||
| 52 | { |
||
| 53 | $cacheKey = $this->getCacheKey($query); |
||
| 54 | if (null !== $cachedResult = $this->cache->get($cacheKey)) { |
||
| 55 | return $cachedResult; |
||
| 56 | } |
||
| 57 | |||
| 58 | $result = $next($query); |
||
| 59 | $this->cache->set($cacheKey, $result, $this->lifetime); |
||
| 60 | |||
| 61 | return $result; |
||
| 62 | } |
||
| 63 | |||
| 75 |
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.