Closed (fixed)
Project:
Drupal core
Version:
10.0.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Sep 2021 at 11:56 UTC
Updated:
27 Dec 2021 at 12:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
daffie commentedI could only find 1 instance where in contrib the method was overridden. See: http://grep.xnddx.ru/node/31687281.
Comment #3
larowlanThis is going to be tricky, we need a corresponding issue for commerce donation
http://grep.xnddx.ru/node/31687281
There are several other extensions in contrib, but only commerce donation touches that method.
Comment #4
larowlanAh, you already found that one 🤦♂️
I think we should file and issue for commerce donation and try to get it fixed there
Comment #5
larowlan#3232249: Add static type-hint to DonationSecuredRedirectResponse::setTargetUrl
Comment #6
larowlanPinged the maintainer in slack
Comment #7
longwavestaticreturn type is only introduced in PHP 8, so another thing we can't do until 10.x opens I guess.Comment #9
spokjeComment #10
longwaveBeing bold and marking this RTBC for 10.0.x, as commerce_donation does not yet declare compatibility with Drupal 10.
Comment #12
catchYes I think it's fine to do these in Drupal 10 - contrib modules can safely update their code in Drupal 9 as long as they require PHP 8, or if they conditionally declare the method.
Committed 1553465 and pushed to 10.0.x. Thanks!