Problem/Motivation

Let PHPStorm pick up proxy methods of \Drupal\entity_hierarchy\Storage\NestedSetStorage

Steps to reproduce

Try writing following code. PHPStorm will not pick up findAncestors method.

    /** @var \Drupal\entity_hierarchy\Storage\NestedSetStorage $storage */
    $ancestors = $storage->findAncestors($key);

Proposed resolution

Document proxy methods in NestedSetStorage using @method annotation.

Remaining tasks

  • Review
  • Commit
  • Rejoice

User interface changes

None.

API changes

None.

Data model changes

None.

CommentFileSizeAuthor
#2 3203047-2.patch1.83 KBjibran

Comments

jibran created an issue. See original summary.

jibran’s picture

Status: Active » Needs review
StatusFileSize
new1.83 KB
larowlan’s picture

Status: Needs review » Fixed

🌭

  • larowlan committed d718553 on 8.x-2.x authored by jibran
    Issue #3203047 by jibran: Document proxy methods in NestedSetStorage
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.