Skip to content

Commit

Permalink
Use Psalm
Browse files Browse the repository at this point in the history
Allowed to fail, for now.
  • Loading branch information
XedinUnknown committed Mar 12, 2021
1 parent 093fed0 commit 83f48b5
Show file tree
Hide file tree
Showing 6 changed files with 1,537 additions and 93 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,9 @@ jobs:
- name: Run PHPUnit
run: vendor/bin/phpunit

- name: Psalm
run: ./vendor/bin/psalm --show-info=false --threads=8 --diff
continue-on-error: true

- name: Run PHPCS
run: ./vendor/bin/phpcs -s --runtime-set ignore_warnings_on_exit 1
17 changes: 17 additions & 0 deletions .idea/php.xml

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

17 changes: 17 additions & 0 deletions .idea/woocommerce-paypal-payments.iml

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

5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
"require-dev": {
"woocommerce/woocommerce-sniffs": "^0.1.0",
"phpunit/phpunit": "^6.0 | ^7.0 | ^8.0 | ^9.0",
"brain/monkey": "^2.4"
"brain/monkey": "^2.4",
"php-stubs/wordpress-stubs": "^5.0@stable",
"php-stubs/woocommerce-stubs": "^5.0@stable",
"vimeo/psalm": "^4.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 83f48b5

Please sign in to comment.