Closed (fixed)
Project:
Drupal core
Version:
10.0.x-dev
Component:
typed data system
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Sep 2021 at 07:53 UTC
Updated:
28 Jan 2022 at 13:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
daffie commentedThe fix.
Comment #3
longwaveAs per my comments in #3231683: [Symfony 6] A number of methods of the class Drupal\Core\TypedData\Validation\ExecutionContext are considered internal and Drupal should not override them. I wonder if we can refactor this away entirely.
Comment #4
daffie commentedI could not find any instances were contrib is extending the class Drupal\Core\TypedData\Validation\ExecutionContext. The adding of the return type hints do not change anything as the methods already only returning what the added type hints are demanding. See: http://grep.xnddx.ru/search?text=ExecutionContext&filename=.
Part of the Symfony 6 in D10 initiative.
Comment #5
longwaveThe patch adds the typehints as per the deprecation.
Comment #7
larowlanCommitted 1b90015 and pushed to 9.3.x. Thanks!
Comment #8
luke.leberI just saw a strange test run with a contrib project that might somewhat be related to this. If this is a red herring, sorry for the noise!
https://www.drupal.org/pift-ci-job/2182122
Comment #9
larowlanA yeah, mixed is PHP8.0 only.
Rolling this one back.
I think that makes this D10 only.
Comment #11
larowlanThanks @Luke.Leber - rolled that back
Comment #13
spokjeClass
\Drupal\Core\TypedData\Validation\ExecutionContextis @deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. See [#3238432]Since that's the only class changes were made for this issue, and this issue can only be committed in Drupal 10 (in which this class will be deleted), I'm going to put this issue on "Closed (outdated)".
Please correct this if I'm wrong.
Comment #14
daffie commented+1 for marking this as outdated. The class is deprecated and will be removed in 10.0.
Comment #15
longwaveReactivating this following the revert in #3255245: [Symfony 6] Revert 3231603 to use our own TranslatorInterface
The latest SF 5.4 run in #3197482: Update Drupal 10 to depend on Symfony 5.4 (as a stepping stone to Symfony 6, for deprecation checking support) shows a few more typehints are needed, fixed in the attached patch.
Comment #16
longwaveComment #17
taran2lSeems like all required typehints have been added (match Symfony 6 as well). Looks good to me.
Comment #18
taran2ljust for the reference, fails from the #3197482-53: Update Drupal 10 to depend on Symfony 5.4 (as a stepping stone to Symfony 6, for deprecation checking support)
Comment #20
catchCommitted b12d11a and pushed to 10.0.x. Thanks!