| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | public function put(ClassMetadata $metadata): void |
||
| 47 | { |
||
| 48 | $key = $this->sanitizeCacheKey($this->prefix . $metadata->name); |
||
| 49 | |||
| 50 | if (null === $this->lastItem || $this->lastItem->getKey() !== $key) { |
||
| 51 | $this->lastItem = $this->pool->getItem($key); |
||
| 52 | } |
||
| 53 | |||
| 54 | $this->pool->save($this->lastItem->set($metadata)); |
||
| 55 | } |
||
| 75 |
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..