V
V
vitaly_742021-12-29 23:25:48
phpstorm
vitaly_74, 2021-12-29 23:25:48

Is it possible to disable the @inheritDoc tag in Phpstorm?

for example, when I write documentation for interface methods, and then at the class, I start generating interface methods, then the @inheritDoc tag appears in the description instead of the dock that I wrote. Here's what I mean:

interface IAffiliate
{
    /**
     * @return string - ссылка для регистрации нового пользователя.
     */
    public function urlForRegistration(): string;

    /**
     * @param int $needleLevel - необходимый уровень рефераллов
     *  0 - показать всех рефераллов
     * @return Referral[] - массив реферралов
     */
    public function showYourRefs(int $needleLevel = 0): array;

    /**
     * @return int - общее кол-во рефералов
     */
    public function totalCountRefs(): int;

    /**
     * @param User $referralUser - пользователь которого нужно добавить в качестве реферала к текущему родителю
     */
    public function attachReferral(User $referralUser): void;

}

 /**
     * @inheritDoc
     */
    public function urlForRegistration(): string
    {
        // TODO: Implement urlForRegistration() method.
    }

    /**
     * @inheritDoc
     */
    public function showYourRefs(int $needleLevel = 0): array
    {
        // TODO: Implement showYourRefs() method.
    }

    /**
     * @inheritDoc
     */
    public function totalCountRefs(): int
    {
        // TODO: Implement totalCountRefs() method.
    }

    /**
     * @inheritDoc
     */
    public function attachReferral(User $referralUser): void
    {
        // TODO: Implement attachReferral() method.
    }

Or tell me how to generate code without this tag. (before everything worked fine)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
neol, 2021-12-30
@neol

61cd454b5975d332946659.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question