We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After upgrading to PHPStan 2, errors related to the accessCheck() method occurred. A similar problem was previously solved in #508.
accessCheck()
Versions used:
2.1.4
2.0.1
// Error: method.alreadyNarrowedType \Drupal::entityQuery('node') ->accessCheck() ->execute(); // Error: method.alreadyNarrowedType \Drupal::entityQuery('node') ->accessCheck() ->condition('type', 'article') ->execute(); // No error. \Drupal::entityQuery('node') ->condition('type', 'article') ->accessCheck() ->execute(); // Error: method.alreadyNarrowedType $query = \Drupal::entityQuery('node'); $query->condition('type', 'article'); $query->accessCheck(); $query->execute();
Public example from GitLab CI: https://git.drupalcode.org/project/simple_sitemap/-/jobs/4303395
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug report
After upgrading to PHPStan 2, errors related to the
accessCheck()
method occurred. A similar problem was previously solved in #508.Versions used:
2.1.4
2.0.1
Code snippet that reproduces the problem
Public example from GitLab CI: https://git.drupalcode.org/project/simple_sitemap/-/jobs/4303395
The text was updated successfully, but these errors were encountered: