Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Inline type definition does not work with | operator
This one is valid
/** @var \Drupal\Component\Uuid\UuidInterface $foo */
but this one is invalid
/** @var \Drupal\Component\Uuid\UuidInterface|\PHPUnit_Framework_MockObject_MockObject $foo */
Comments
Comment #1
klausiDuplicate of #2450111: Allow inline /** @var doc comment for multiple typehint with "|" (pipe/bar), please update to the latest version.