Accessing midgard on the interface Doctrine\Persistence\Mapping\ClassMetadata suggest that you code against a concrete implementation. How about adding an instanceof check?
Loading history...
31
}
32
33
1
public static function list_children(string $classname) : array
Accessing midgard on the interface Doctrine\Persistence\Mapping\ClassMetadata suggest that you code against a concrete implementation. How about adding an instanceof check?
Loading history...
37
1
return [];
38
}
39
// @todo We filter out useful information (parent field name) in the name of mgd2 compat.
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.