Skip to content
Snippets Groups Projects

Fix implicit nullables

2 files
+ 2
2
Compare changes
  • Side-by-side
  • Inline

Files

@@ -150,7 +150,7 @@ class DynamicEntityReferenceItem extends EntityReferenceItem {
@@ -150,7 +150,7 @@ class DynamicEntityReferenceItem extends EntityReferenceItem {
*
*
* @see \Drupal\dynamic_entity_reference\Plugin\Field\FieldWidget\DynamicEntityReferenceOptionsTrait::massageFormValues()
* @see \Drupal\dynamic_entity_reference\Plugin\Field\FieldWidget\DynamicEntityReferenceOptionsTrait::massageFormValues()
*/
*/
public function getSettableOptions(AccountInterface $account = NULL) {
public function getSettableOptions(?AccountInterface $account = NULL) {
$field_definition = $this->getFieldDefinition();
$field_definition = $this->getFieldDefinition();
$entity_type_manager = \Drupal::entityTypeManager();
$entity_type_manager = \Drupal::entityTypeManager();
$entity_type_bundles_info = \Drupal::service('entity_type.bundle.info');
$entity_type_bundles_info = \Drupal::service('entity_type.bundle.info');
Loading