Skip to content

[FEATURE]: Support PHP Intelephense Stubs #5574

@chubes4

Description

@chubes4

Feature hasn't been suggested before.

  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionUsed for feature requests, proposals, ideas, etc. Open discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions