KnpLabs / KnpLabs/php-github-api

Add .phpstorm.meta.php to improve code completion

Open
#1,092 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
2.2k
Forks
587
PR merge metrics
No merged PRs in 30d

Description

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
\Github\Api\Issue::class,
//...
]));
}
```
Would you be interested in adding it?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the proposed .phpstorm.meta.php file and inspect the \Github\Client::api(0) entry point to identify the API names that need metadata mappings. The work is complete when PhpStorm can infer the returned type for calls such as api('issue'), with the mappings covering the package's relevant API classes.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
developer-experience
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.