Open
Description
<?php
class HitCounter implements Countable {
public function __construct() {
$this->counter = 0;
}
public function hit() {
++$this->counter;
}
public function count(): int {
return $this->counter;
}
}
class RandomClass {}
$random = new RandomClass;
$hits = new HitCounter;
$testArr = [];
$hits->hit();
$hits->hit();
count($|); // <= only suggest `$hits` and `$testArr`, ´$random` is filtered out