php-stubs/wordpress-globals
Stub declarations for WordPress globals like $wpdb, $post, and $wp_query, giving PHPStan, Psalm, and other static analyzers accurate types. Pairs with php-stubs/wordpress-stubs to silence undefined-variable warnings and improve autocompletion in plugin and theme code.
php-stubs/wordpress-globals supplies IDE and static-analysis stubs for the global variables defined by WordPress core, filling a gap left by function and class stub packages. It lets tools like PHPStan, Psalm, and PhpStorm recognize $wpdb, $wp_query, $post, $current_user, and other globals without false "undefined variable" warnings.
php-stubs/wordpress-stubs for complete coverageHow can I help you explore Laravel packages today?