- 🇮🇹Italy apaderno Brescia, 🇮🇹
That test class is already using the right interface.
It is correct to use an interface for type hinting. What would be wrong in
@var \Drupal\user\Entity\UserInterface
is that Drupal core does not define\Drupal\user\Entity\UserInterface
. It defines\Drupal\user\UserInterface
, though. - Status changed to Closed: duplicate
12 months ago 6:57am 14 July 2024 - 🇮🇹Italy apaderno Brescia, 🇮🇹
Actually, the interface used for type hinting that class property was fixed in [##3072443].