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.
AddressFormat.php needs
use CommerceGuys\Addressing\Enum\AddressField;
Comments
Comment #2
bojanz CreditAttribution: bojanz at Centarro commentedRetitling for clarity.
Comment #4
bojanz CreditAttribution: bojanz at Centarro commentedPushed a fix. Thank you for reporting.
Comment #5
matslats CreditAttribution: matslats as a volunteer commentedyah 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
!
Comment #6
bojanz CreditAttribution: bojanz at Centarro commented@matslats
You need to run "composer drupal-update", to get the latest addressing library.