- Issue created by @ram4nd
- Merge request !10300Issue #3489337: (int) typecast in User::hasPermission() is dangerous → (Open) created by ram4nd
- 🇪🇪Estonia ram4nd Tallinn
I am thinking that it would be correct to validate int only. But the patch is to check string and int, at this point we probably don't want to introduce new possible problems.
Drupal 8 is no longer supported on drupal.org and that function looks significantly different in supported releases. Can you check on the 11.x branch and re-evaluate the bug?