Closed (fixed)
Project:
Address
Version:
2.1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2024 at 15:25 UTC
Updated:
7 Oct 2026 at 00:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
porchlight commented8x.-1.x patch
Comment #3
bojanz commentedThis is for compatibility with Diff 2.0.x, right? Diff 8.x-1.x still works?
Comment #4
porchlight commentedYes! Sorry, I guess I should have stated that.
Comment #5
evgen commentedIt fixes this problem as well!
Fatal error: Declaration of Drupal\address\Plugin\diff\Field\AddressFieldBuilder::build(Drupal\Core\Field\FieldItemListInterface $field_items) must be compatible with Drupal\diff\Plugin\diff\Field\CoreFieldBuilder::build(Drupal\Core\Field\FieldItemListInterface $field_items): array in /project/docroot/modules/contrib/address/src/Plugin/diff/Field/AddressFieldBuilder.php on line 24
Thanks!
Comment #6
maxilein commentedThanks!
I can confirm it solved my problem:
PHP Fatal error: Declaration of Drupal\\address\\Plugin\\diff\\Field\\AddressFieldBuilder::build(Drupal\\Core\\Field\\FieldItemListInterface $field_items) must be compatible with Drupal\\diff\\Plugin\\diff\\Field\\CoreFieldBuilder::build(Drupal\\Core\\Field\\FieldItemListInterface $f<h2></h2>ield_items): array in /.../.../modules/contrib/address/src/Plugin/diff/Field/AddressFieldBuilder.php on line 24D 10.3.6 php 8.3, diff 2.0.0-beta3
Comment #7
pearls commented+1 for RTBC
Comment #8
bojanz commentedLet's do this.
Comment #10
bojanz commentedComment #13
kevinquillen commentedWould it be possible to get this fix out into a stable release?
Comment #14
acbramley commentedSeconding #13 it looks like it was committed to 2.x but not 2.0.x so it didn't make it into 2.0.4 which was just released last month
Comment #15
sagesolutions commented+1 for a new stable release with this included.
Comment #16
dwwPer #3537066: Disparity between 2.x and 2.0.x, I cherry-pick'ed this and pushed to 2.0.x. Not sure why that's not automatically showing up here. But it's at:
https://git.drupalcode.org/project/address/-/commit/ba10f2ea735dc6f64e50...
So this will go out in the 2.0.5 release, whenever that happens.
Comment #17
dwwp.s. I should note for the record that I tested this locally with a 10.5.x site, installed diff 8.x-1.9 and address 2.0.x, created a node type with an address field, made some edits / revisions, and was safely able to view the diffs between the revisions without trouble. I then upgraded diff to 2.0.0-beta4, and diff all kept working fine.
Comment #18
joegl commentedIt would be great to get a release out for this. New issues are popping up as duplicates and the fix has been around 2 years.
Comment #19
yovinceThis patch combines 2 fixes
https://www.drupal.org/project/address/issues/3460590
https://www.drupal.org/project/address/issues/3440036