Skip to content

Issue in generated entity code (hasPermission)#223

Open
TolstoyDotCom wants to merge 1 commit intoChi-teck:4.xfrom
TolstoyDotCom:4.x
Open

Issue in generated entity code (hasPermission)#223
TolstoyDotCom wants to merge 1 commit intoChi-teck:4.xfrom
TolstoyDotCom:4.x

Conversation

@TolstoyDotCom
Copy link
Copy Markdown

Code produced by Drush has an issue that only became apparent at PHPStan level 8. See https://www.drupal.org/project/drupal/issues/3587247 and https://www.drupal.org/project/drupal/issues/3416110

This hasn't caused a problem for me, but might for others in some cases.

This change checks that the return of getAdminPermission is a string before calling hasPermission.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant