You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You might also want to look at Psalm? https://psalm.dev/. There's a WordPress plugin available (originally written by Joe Hoyle from Human Made, now maintained by the core Psalm team) that helps with making sure the tool doesn't freak out about not finding WP core functions as well: https://github.com/psalm/psalm-plugin-wordpress
Introducing a static analysis tool would allow to have a layer similar to TypeScript's type checking.
PHPStan is a good option, but we would need to make sure it does not detect WordPress core functions as undefined.
The text was updated successfully, but these errors were encountered: