phpstan-drupal icon indicating copy to clipboard operation
phpstan-drupal copied to clipboard

FormatterPluginManager::getInstance() return type with generic interface FormatterInterface does not specify its types

Open mglaman opened this issue 6 months ago • 0 comments

Bug report

After stubbing entity reference formatters, we now get:

Method Drupal\Core\Field\FormatterPluginManager::getInstance() return type with generic interface Drupal\Core\Field\FormatterInterface does not specify its types: T

Code snippet that reproduces the problem

mglaman avatar May 22 '25 17:05 mglaman