hi, I want to implement interface \phpDocumentor\Reflection\DocBlockFactoryInterface , but createInstace() return type does not allow me to do it:
/**
* Factory method for easy instantiation.
*
* @param array<string, class-string<Tag>> $additionalTags
*/
public static function createInstance(array $additionalTags = []) : DocBlockFactory;
I could set return type to DocBlockFactory, but this become meaningless, because I want to return my new DocBlockFactoryInterface instance. Or I trying to do it wrongly?
hi, I want to implement interface
\phpDocumentor\Reflection\DocBlockFactoryInterface
, but createInstace() return type does not allow me to do it:I could set return type to DocBlockFactory, but this become meaningless, because I want to return my new DocBlockFactoryInterface instance. Or I trying to do it wrongly?
version 5.2.2
Thanks