Closed (fixed)
Project:
Drupal core
Version:
9.3.x-dev
Component:
base system
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Sep 2021 at 09:41 UTC
Updated:
4 Oct 2021 at 09:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
daffie commentedComment #3
daffie commentedThe problem for adding this return type hint is that a lot of contrib modules override the method. See: http://grep.xnddx.ru/search?text=public+function+handle%28&filename=. Maybe we need to wait for D10.0 to commit this patch.
Comment #5
catchLooks like we're returning
NULLin some places from the test results, should we open another issue to fix those in 9.x?Comment #6
daffie commentedThe problem is that to fix the tests you also have to add the return type hinting. The required test changes are in the interdiff patch file and they will fail. Therefor for this and the overrides in contrib, I am moving this to 10.0.
This issue is part of the Symfony 6 stuff and that is all critical.
Comment #7
longwaveFor this to be problematic to contrib, they have to both implement this method *and* extend one of our classes. From a random sample of the results in #3 they either implement HttpKernelInterface directly (in which case they also need to add return types, but it doesn't stop us from doing so beforehand) or are false positives (the method signature is different). I didn't see anything that extends Drupal core code directly.
Therefore moving this back to 9.x for review.
Comment #10
daffie commentedFixed the testbot failures.
Comment #12
daffie commentedComment #13
longwaveComment #14
alexpottCommitted e147702 and pushed to 9.3.x. Thanks!
Thanks for checking contrib and documenting your checks @longwave.
I think we might need a single CR to collect all the SF6 preparations together?
Comment #16
catchThere's a CR here: https://www.drupal.org/node/3236232
I've added this issue.