The interface ContainerDerivativeInterface is I understand intended to extend DerivativeInterface, rather than implementers using both interfaces.
Must admit it baffled me a while, why all implementation of ContainerDerivativeInterface implemented the methods from DerivativeInterface but it seemed to be replacing it rather then also implementing it or extending DerivativeBase.
So as it's in the same namespace just:
-interface ContainerDerivativeInterface {
+interface ContainerDerivativeInterface extends DerivativeInterface {
Will add patch too.
Comments
Comment #1
ekes commentedComment #2
damiankloip commentedThey are in different namespaces so you'll need to
use Drupal\Component\Plugin\Derivative\DerivativeInterface;too. One is in Core and, the other in Component :)Comment #3
ekes commentedOps. Completely misread that.
Comment #4
damiankloip commentedLooks good, and should come back green
Comment #5
alexpottCommitted 7a83e59 and pushed to 8.x. Thanks!