dantleech
dantleech
> I would like to be able to inject comments for the various 3rd party methods I assume you mean through the use of stubs?
It can now as "Additive stubs" (just merged #2968 ): https://phpactor.readthedocs.io/en/master/reference/stubs.html If you're on the master branch you can configure `"worse_reflection.additive_stubs": [ "path/to/wordpresssetubs.php"]` or similar.
Can you share the applicable phpactor config? I tested this with: ``` # .phpactor.json { "worse_reflection.additive_stubs": [ "_ide_helper.php", "_ide_helper_models.php" ], "indexer.include_patterns": [ "/app/**/*.php", "/tests/**/*.php" ], // other config } ```
Wild cards are not supported, with the current implementation you need to include each stub file individually - and indeed you should have received a notification in your IDE that...
> But a new problem: 1 has databaseNotifications and 2 does not, VSCode is complaining it cannot find databaseNotifications, well, it's definitely in 1 I'd need to see your additive...
This seems to work fine for me: ``` "worse_reflection.additive_stubs": [ "stubs/panel.stub", "_ide_helper.php", "_ide_helper_models.php" ], "indexer.include_patterns": [ "/app/**/*.php", "/tests/**/*.php" ], ```
> Does /vendor/**/*.php have to be in indexer.include_patterns? Ignore that, it was in there but deleted it along with several other paths for that example. > And I noticed you...
> Is "/app/**/*.php" a relative path? the `include` and `exclude` paths are confusing, they are, by design, "absolute" to the project root - but you can also just have `app/**/*.php`....
> Absolute paths are referenced to the filesystem absolute paths are referenced to the tree against which they are applied. The tree in **this case** is a workspace that is...
it won't happen for a few weeks and then it will probably take another few weeks for the VS code package to be updated. I would consider cloning phactor and...