Upgrading Drupal core from 8.4.0 to 8.4.5, I'm receiving the following error.

TypeError: Argument 1 passed to Drupal\commerce_product_bundle\Plugin\Field\FieldType\BundleItemSelection::__construct() must be an instance of
               Drupal\commerce_product_bundle\Plugin\Field\FieldType\DataDefinitionInterface, instance of Drupal\Core\Field\TypedData\FieldItemDataDefinition given

It looks like the use statements for DataDefinitionInterface, and TypedDataInterface were not added to BundleItemSelection.php

Comments

sheanhoxie created an issue. See original summary.

steveoliver’s picture

Status: Needs review » Reviewed & tested by the community
olafkarsten’s picture

Status: Reviewed & tested by the community » Fixed

Amazing is that I do not get an error message and neither IDE nor CS complained. :/ ?
Anyway, thanks.

  • olafkarsten committed 3859a8e on 8.x-1.x
    Issue #2955691 by sheanhoxie, steveoliver: Instances of...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.