php-github-api
php-github-api copied to clipboard
Add .phpstorm.meta.php to improve code completion
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?
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!