AddressFormat.php needs

use CommerceGuys\Addressing\Enum\AddressField;

Comments

matslats created an issue. See original summary.

bojanz’s picture

Title: Missing Use » Missing use statement in \Drupal\address\Entity\AddressFormat

Retitling for clarity.

  • bojanz committed 67bae71 on 8.x-1.x
    Issue #2563163: Missing use statement in \Drupal\address\Entity\...
bojanz’s picture

Status: Active » Fixed

Pushed a fix. Thank you for reporting.

matslats’s picture

yah but that last push did this:
Class Drupal\\address\\Plugin\\Field\\FieldType\\AddressItem contains 11 abstract methods and must therefore be declared abstract or implement the remaining methods (CommerceGuys\\Addressing\\Model\\AddressInterface::setLocale, CommerceGuys\\Addressing\\Model\\AddressInterface::setCountryCode, CommerceGuys\\Addressing\\Model\\AddressInterface::setAdministrativeArea, ...) in /home/matslats/localhost/drupal8/modules/contrib/address/src/Plugin/Field/FieldType/AddressItem.php on line 275
!

bojanz’s picture

@matslats
You need to run "composer drupal-update", to get the latest addressing library.

Status: Fixed » Closed (fixed)

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