- Issue created by @cmlara
False positive when using disjunctive normal form types in PHPDoc
Drupal.Commenting.VariableComment.IncorrectVarType: Expected "\Drupal\user\UserInterface&\PHPUnit\Framework\MockObject\MockObject|null" but found "(\Drupal\user\UserInterface&\PHPUnit\Framework\MockObject\MockObject)|null" for @var tag in member variable comment
Note: this can't be solved by strict type hinting because DNF was not added until PHP8.2.
/**
* Mock entity for the user that is attempting to login.
*
* @var (\Drupal\user\UserInterface&\PHPUnit\Framework\MockObject\MockObject)|null
*/
protected $userMock;
Active
8.3
Coder Sniffer