Happy Sunday, #Drupal and #PHPStan friends.
Question: when trying to get past PHPStan rule level 5, I get complaints about arrays when used as param or return type.
➡️ https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-iterable-type
Is there a Drupally consensus for typehinting these?
e.g this makes PHPStan happy but what do I know?
/**
* Implements hook_form_alter().
*
* @param $form string[]
*/
mymodule_form_alter(&$form, FormStateInterface $form_state, $form_id) { ... }