-
-
Notifications
You must be signed in to change notification settings - Fork 84
Open
Labels
bugSomething isn't workingSomething isn't working
Description
/**
* @return non-negative-int
*/
public function count(): int {
return $this->entityTypeManager
->getStorage('example')
->getQuery()
->accessCheck()
->count()
->execute();
}
Method Drupal\example\Repository\Example::count() should return int<0, max> but returns int.
🪪 return.type
It's great that it managed to figure out the count query. But we can narrow down the type further since the result can never be negative.
Copilot
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working