phpstan-drupal
phpstan-drupal copied to clipboard
Split apart RenderCallbackRule
Feature request
This will trigger the 1.2.0 release.
RenderCallbackRule inspects render array callables. It should be split apart for:
AccessCallbackRulefor#access_callbackLazyBuilderCallbackRulefor#lazy_builderRenderCallbackRuleis for the remaining items, which all support an array of callables
We need to extract the trusted callback checks into its service. These rules can call this service to include that as an error on top of other possible errors. PHPStan has a similar setup for some of its rules.