Problem/Motivation
\Drupal\Core\TypedData\Validation\ExecutionContext implements Symfony's ExecutionContextInterface and was originally copied from Symfony 2. Symfony deprecated several methods and removed them in Symfony 3.
Steps to reproduce
Proposed resolution
Remove methods that don't belong to the interface any more.
Clean up code that deals with the legacy validator API that is no longer used.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 3258407-6.patch | 2.54 KB | longwave |
| #5 | 3258407-nr-bot.txt | 143 bytes | needs-review-queue-bot |
| #2 | 3258407-2.patch | 2.44 KB | longwave |
Comments
Comment #2
longwaveComment #5
needs-review-queue-bot commentedThe Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #6
longwaveComment #8
spokjeCode changes only removes methods that are currently throwing LogicExceptions.
RTBC, test failure is a random JS one.
Comment #10
catchLooks good. The LogicException for extra arguments would help someone calling with the old API, but I don't think we need to keep that into 10.1 (or that it would be common).
Committed 724c552 and pushed to 10.1.x. Thanks!