We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 693a0a6 commit d3c3e4cCopy full SHA for d3c3e4c
tests/src/Type/data/field-types.php
@@ -69,7 +69,7 @@
69
assert($entity_reference_field instanceof EntityReferenceItem);
70
assertType(EntityReferenceItem::class, $entity_reference_field);
71
assertType('int|string', $entity_reference_field->target_id);
72
-assertType('Drupal\Core\Entity\EntityInterface', $entity_reference_field->entity);
+assertType('Drupal\Core\Entity\EntityInterface|null', $entity_reference_field->entity);
73
74
// FloatItem.
75
$float_field = $node->get('field_float')->first();
0 commit comments