Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Commit

Permalink
Fix running PHPStan.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Jan 20, 2021
1 parent b74d7a6 commit 895457b
Show file tree
Hide file tree
Showing 4 changed files with 207 additions and 6 deletions.
6 changes: 4 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
includes:
- vendor-bin/phpstan/vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
customRulesetUsed: false
level: max
bootstrapFiles:
- tests/bootstrap.php
- tests/phpstan/bootstrap.php
paths:
- src
- src/
11 changes: 11 additions & 0 deletions tests/phpstan/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
/**
* Definitions for PHPStan.
*
* @author Pronamic <[email protected]>
* @copyright 2005-2021 Pronamic
* @license GPL-3.0-or-later
* @package Pronamic\WordPress\Pay
*/

define( 'SCRIPT_DEBUG', true );
7 changes: 4 additions & 3 deletions vendor-bin/phpstan/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"require-dev": {
"phpstan/phpstan": "^0.12"
}
"require-dev": {
"phpstan/phpstan": "^0.12",
"szepeviktor/phpstan-wordpress": "^0.7"
}
}
189 changes: 188 additions & 1 deletion vendor-bin/phpstan/composer.lock

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

0 comments on commit 895457b

Please sign in to comment.