Problem/Motivation
In #3580841: Callers don't account the scenario in which JobItem::acceptTranslation() fails softly we've changed the signature of JobItemInterface::acceptTranslation() but this is wrong because it's a backwards compatibility break for modules that are already implementing JobItemInterface
Steps to reproduce
Proposed resolution
Instead, log the message directly from within the method.
Remaining tasks
None.
User interface changes
None.
API changes
Revert the JobItemInterface::acceptTranslation() signature
Data model changes
None.
Issue fork tmgmt-3618458
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
claudiu.cristeaComment #4
claudiu.cristeaComment #5
claudiu.cristeaComment #6
andras_szilagyi commentedLooks good
Comment #7
claudiu.cristeaJust try to extend JobItem::acceptTranslation() as
You'll get the error: "Declaration must be compatible with JobItem->acceptTranslation([&rejection_reason: null|string = NULL]) "
Comment #9
claudiu.cristea