phpstan-drupal icon indicating copy to clipboard operation
phpstan-drupal copied to clipboard

Entity query access check incorrect if query is property on class

Open mglaman opened this issue 3 years ago • 0 comments

Given \Drupal\Tests\migrate_tools\Functional\MigrateExecutionFormTest

  private QueryInterface $vocabularyQuery;


    $this->vocabularyQuery = $this->container->get('entity_type.manager')
      ->getStorage('taxonomy_term')
      ->getQuery()
      ->accessCheck(TRUE);


    $real_count = $this->vocabularyQuery->count()->execute();

mglaman avatar Jun 30 '22 15:06 mglaman