opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[FEATURE]: Support PHP Intelephense Stubs

Open chubes4 opened this issue 1 month ago • 1 comments

Feature hasn't been suggested before.

  • [x] I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

When using LSP in Opencode, the built-in PHP Intelephense is flagging WordPress native functions as undefined and blocking edits. This causes the agent to behave strangely and wastes context.

The way this is handled in VScode, etc, is by adding WordPress (or any php project) stubs, so that the linter doesn't flag them.

It does not seem that the current built-in LSP system provides a way to suppress these warnings, without disabling the feature

I would love to be able to use the feature, without the faulty linter warnings that block agent edits.

Let me know if I am missing the way to achieve this if it does already exist.

chubes4 avatar Dec 15 '25 18:12 chubes4

This issue might be a duplicate of existing issues. Please check:

  • #3548: Editing and creating files with gemini returns linter errors - discusses how linter errors can block file edits and cause agent issues

Feel free to ignore if this doesn't address your specific case.

github-actions[bot] avatar Dec 15 '25 18:12 github-actions[bot]