| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class CachedCount |
||
| 10 | { |
||
| 11 | private ?int $count = null; |
||
| 12 | private ?Countable $collection; |
||
| 13 | public function __construct(Countable $collection) |
||
| 16 | } |
||
| 17 | /** |
||
| 18 | * @psalm-internal Yiisoft\Yii\Cycle\DataReader |
||
| 19 | */ |
||
| 20 | public function getCount(): int |
||
| 21 | { |
||
| 22 | return $this->count ?? $this->cacheCount(); |
||
| 23 | } |
||
| 24 | private function cacheCount(): int |
||
| 30 | } |
||
| 31 | } |
||
| 32 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.