Closed mstenta closed 1 year ago
Probably a follow-up to the improvements that were made in https://github.com/mglaman/phpstan-drupal/pull/454...
The following code is resulting in PHPStan error: "Missing explicit access check on entity query."
$query = $this->entityTypeManager->getStorage($entity_type)->getAggregateQuery() ->accessCheck(TRUE) ->condition('type', $bundle);
Perhaps we just need to accommodate getAggregateQuery()? Or is there a "correct" way to structure the code to make PHPStan happy? :-)
getAggregateQuery()
Added a PR to try and fix getAggregateQuery() problems.
Probably a follow-up to the improvements that were made in https://github.com/mglaman/phpstan-drupal/pull/454...
The following code is resulting in PHPStan error: "Missing explicit access check on entity query."
Perhaps we just need to accommodate
getAggregateQuery()
? Or is there a "correct" way to structure the code to make PHPStan happy? :-)