Skip to content

Add .phpstorm.meta.php to improve code completion #1092

Open

Description

@pronskiy

Folks, adding a .phpstorm.meta.php file with something like this below, would make users' experience with the package in PhpStorm a bit better when using calls like ->api('issue'):

<?php
namespace PHPSTORM_META {
    override( \Github\Client::api(0),
      map( [
        "issue" => \Github\Api\Issue::class,
        //...
    ]));
}

Would you be interested in adding it?

Activity

  1. acrobat commented on Nov 15, 2022

    @acrobat
    Collaborator

    Users can also use the ->issue() virtual method on the client object and receive full ide support. But indeed this would improve the UX when using the ->api('xxx') approach so I'm open for a PR that adds this improvement!

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions