With nvim-lspconfig v3.0.0 coming soon, the code listed in the README.md for the configuration is soon to be deprecated. I don't use null_ls, but the lspconfig difference looks like this now:
local wp = require 'wordpress'
vim.lsp.config('intelephense', wp.intelephense)
vim.lsp.enable 'intelephense'