Skip to content

Commit

Permalink
Add WP_PHPUnit stubs for psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
alecgeatches committed Jan 2, 2025
1 parent 6d19460 commit 1ee8e0e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"mockery/mockery": "^1.6",
"wp-phpunit/wp-phpunit": "^6.7",
"yoast/phpunit-polyfills": "^2.0",
"php-stubs/wordpress-globals": "^0.2.0"
"php-stubs/wordpress-globals": "^0.2.0",
"php-stubs/wordpress-tests-stubs": "^6.7"
},
"config": {
"allow-plugins": {
Expand Down
42 changes: 41 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<stubs>
<file name="vendor/php-stubs/wordpress-globals/wordpress-globals.php"/>
<file name="vendor/php-stubs/wordpress-stubs/wordpress-stubs.php"/>
<file name="vendor/php-stubs/wordpress-tests-stubs/wordpress-tests-stubs.php"/>
<file name="tests/inc/test-utils.php"/>
<file name="remote-data-blocks.php"/>
</stubs>
Expand Down

0 comments on commit 1ee8e0e

Please sign in to comment.