Skip to content

Imported interfaces are marked as unused when used for constant #82

Description

@danez

This is a similar issue like #51 which was fixed in 5d27c04, but in this case it is interfaces which are marked as unused when used as constant in a annotation.

use rg\core\graphql\relay\NodeInterface;

/**
 * @Query(
 *     type=NodeInterface::class
 * )
 */
class NodeQuery implements GraphQLQueryInterface {}

The use statement in this example is marked unused assuming NodeInterface is an interface and not a class.

I haven't checked if traits have the same problem but maybe also traits should be considered in this issue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions