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.
If a property can have multiple data types you can declare this by separating the different types with a pipe:
/**
* The database log.
*
* @var \Drupal\rdf_entity\Database\Driver\sparql\Log|null
*/
protected $log;
Currently the VariableCommentSniff
doesn't account for this and throws this false positive:
Expected "\Drupal\rdf_entity\Database\Driver\sparql\Lognull" but found "\Drupal\rdf_entity\Database\Driver\sparql\Log|null" for @var tag in member variable comment
Comments
Comment #2
pfrenssenFixy fixy: https://github.com/klausi/coder/pull/12
Comment #4
klausiMerged, thanks!