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.
The interface
in src/ExternalLibrary/Utility/LibraryIdAccessorInterface.php
is misnamed--LibraryAccessorInterface
(no "Id"), which is already declared in src/ExternalLibrary/Utility/LibraryIdAccessorInterface
and thus causes a PHP fatal error if the code is parsed (e.g., when scanning for deprecated code use).
Comment | File | Size | Author |
---|---|---|---|
#2 | 2882709-2-interface-libraryidaccessorinterface-misnamed.patch | 566 bytes | Kingdutch |
|
Comments
Comment #2
KingdutchPatch attached
Comment #3
DuneBLThis patch is really useful.
Thank you
Comment #4
Dinesh18 CreditAttribution: Dinesh18 as a volunteer commented#2 looks good to be. Changing the status to RTBC
Comment #5
ñull CreditAttribution: ñull commentedPatch #2 fixed this issue for me:
I only discovered this patch after reducing my search string to LibraryIdAccessorInterface and I really wonder now why after 9 months this isn't submitted to a release version yet.
Comment #6
balazswmann CreditAttribution: balazswmann commentedI can also confirm this bug, but patch #2 fixed the issue for me.
Comment #7
alex_optimGood for me.
Comment #8
NWOM CreditAttribution: NWOM commented#2 worked for me as well. Thank you!
Comment #9
TravisCarden CreditAttribution: TravisCarden at Acquia commentedBecause the misnamed
interface
is already declared elsewhere, this actually causes a PHP fatal error if the duplicate declaration is ever interpreted (see updated summary). This patch should be merged.Comment #10
TravisCarden CreditAttribution: TravisCarden at Acquia commentedComment #11
phenaproxima+1 RTBC on this. It can utterly break the Libraries API, so escalating it to Major.
Comment #13
tstoecklerCommitted this.
Note that because the whole "new" API in 8.x-3.x which this interface is a part of is completely unused (as far as I know of) because we never got around to completing it, which is why issues like this can happen. Not sure I can realistically promise that that situation will change anytime soon seeing the lack of progress in the last years...
Comment #14
tstoecklerOh, sorry, forgot the most important part: Thanks @everyone for the patch and the reviews!! The amount of confirmation allowed to me commit this basically unseen.