https://git.drupalcode.org/project/drupal/blob/8.8.0-beta1/core/lib/Drup...
That method implements Symfony\Component\Validator\MetadataInterface::accept() which has been removed in Symfony 3, as well as ValidationVisitorInterface.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Chi created an issue. See original summary.

shashikant_chauhan’s picture

Status: Active » Needs review
FileSize
677 bytes

Added patch.

Chi’s picture

Status: Needs review » Needs work

This also implies removal of unused use statements.

MeenakshiG’s picture

Status: Needs work » Needs review
FileSize
988 bytes

Removed unused use statement

Chi’s picture

Status: Needs review » Needs work

Removed unused use statement

What about BadMethodCallException?

MeenakshiG’s picture

Status: Needs work » Needs review
FileSize
1.12 KB

@chi Removed BadMethodCallException also. Let me know if there is any other issue .

Chi’s picture

Status: Needs review » Reviewed & tested by the community

Thank you.

alexpott’s picture

Category: Bug report » Task
Status: Reviewed & tested by the community » Fixed

Refiling as a task because if you called the method you'd get an exceptional so it's not really a bug fix - we're removing dead code - which is great btw just not really a bug fix.

Committed and pushed 7bfb9b723f to 9.0.x and 000c392060 to 8.9.x. Thanks!

  • alexpott committed 7bfb9b7 on 9.0.x
    Issue #3093825 by Meenakshi.g, shashikant_chauhan, Chi: Remove...

  • alexpott committed 000c392 on 8.9.x
    Issue #3093825 by Meenakshi.g, shashikant_chauhan, Chi: Remove...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.