idea-php-annotation-plugin icon indicating copy to clipboard operation
idea-php-annotation-plugin copied to clipboard

When finding usage of a class which was used as part of annotation, it's not being found

Open golaod opened this issue 6 years ago • 0 comments

An example

<?php

namespace Acme {
    class MyClass {}

    /**
     * @Annotation(MyClass::class)
     */
    class MyUse {}
}

namespace Acme2 {
    use Acme\MyClass;

    /**
     * @Annotation(MyClass::class)
     */
    class OtherUse {}
}

When I try to use 'find usage' on MyClass, it won't find MyUse and it will find only use Acme\MyClass;

Is there a chance that 'find usage' would see MyClass::class in annotations?

golaod avatar Apr 24 '19 05:04 golaod