Skip to content

PHP Docblock Inheritance #569

Open
Open
@robertmain

Description

@robertmain

When implementing an interface on a class, it is possible to use {@inheritdoc} to bring the documentation for a particular interface method to the class. This works perfectly well when manually running phpdoc - however this same documentation inheritance is not maintained in the PHP intellisense popups.

Expected

image

Actual

image

Relevant Code

Class

<?php

use Psr\Cache\CacheItemPoolInterface;
use Psr\Cache\CacheItemInterface;

class Cache implements CacheItemPoolInterface
{
    /**
     * {@inheritdoc}
    */
    public function getItem($key)
    {
        return true;
    }
}

Interface

https://github.com/php-fig/cache/blob/master/src/CacheItemPoolInterface.php#L16-L32

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions