Fix 2 PHPStan L1 errors "Relying on entity queries to check access by default is deprecated..." in the Layout Builder module

Created on 2 May 2023, about 1 year ago

Problem/Motivation

With the version bump of mglaman/phpstan-drupal in 📌 Update mglaman/phpstan-drupal and help make daily "updated deps" QA jobs pass Fixed there are two more PHPStan L1 errors "Relying on entity queries to check access by default is deprecated..." which can be solved.
Both of them are in the Layout Builder module.

As it turns out there is still a problem with mglaman/phpstan-drupal relating to accesCheck() and count queries, see https://github.com/mglaman/phpstan-drupal/issues/545.
Therefore there will still be two occurrences of the above error present in the baseline. These should all be about count queries.
These should be solved when the above mentioned mglaman/phpstan-drupal is solved, committed and the new version of mglaman/phpstan-drupal is used by Drupal Core.
These two occurences are not a part of this issue.

Steps to reproduce

Proposed resolution

- There should be no more of the above mentioned errors in the Layout Builder module being suppressed in the baseline.
- TestBot should return green.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

10.1 ✨

Component
Layout builder  →

Last updated about 5 hours ago

Created by

🇳🇱Netherlands Spokje

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024