PHP Intelephense + Stubs?

37 views
Skip to first unread message

Zackery Fretty

unread,
Jan 14, 2024, 10:09:53 PM1/14/24
to BBEdit Talk
I'm hoping to enable WordPress support in Intelephense but it seems to do so I need to add WordPress to the "Stubs". 

I see this question has been asked here before, but I don't see a real resolution:


Has anybody figured out a way to do this?

Zackery Fretty

unread,
Jan 15, 2024, 12:27:06 AM1/15/24
to BBEdit Talk
To answer my own question this was the Intelephense custom config that I went with and it seems to both keep the default functions working and add WordPress in there, I pulled it from the VSCode package.json:

{
  "intelephense": {
    "stubs": [
      "apache",
      "bcmath",
      "bz2",
      "calendar",
      "com_dotnet",
      "Core",
      "ctype",
      "curl",
      "date",
      "dba",
      "dom",
      "enchant",
      "exif",
      "fileinfo",
      "filter",
      "fpm",
      "ftp",
      "gd",
      "hash",
      "iconv",
      "imap",
      "interbase",
      "intl",
      "json",
      "ldap",
      "libxml",
      "mbstring",
      "mcrypt",
      "meta",
      "mssql",
      "mysqli",
      "oci8",
      "odbc",
      "openssl",
      "pcntl",
      "pcre",
      "PDO",
      "pdo_ibm",
      "pdo_mysql",
      "pdo_pgsql",
      "pdo_sqlite",
      "pgsql",
      "Phar",
      "posix",
      "pspell",
      "readline",
      "recode",
      "Reflection",
      "regex",
      "session",
      "shmop",
      "SimpleXML",
      "snmp",
      "soap",
      "sockets",
      "sodium",
      "SPL",
      "sqlite3",
      "standard",
      "superglobals",
      "sybase",
      "sysvmsg",
      "sysvsem",
      "sysvshm",
      "tidy",
      "tokenizer",
      "wddx",
      "wordpress",
      "xml",
      "xmlreader",
      "xmlrpc",
      "xmlwriter",
      "Zend OPcache",
      "zip",
      "zlib"
    ]
Reply all
Reply to author
Forward
0 new messages