Skip to content
This repository has been archived by the owner on Oct 1, 2021. 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 228c427 commit 6803753
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
@@ -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
@@ -0,0 +1,11 @@
<?php
/**
* Definitions for PHPStan.
*
* @author Pronamic <info@pronamic.eu>
* @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
@@ -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 6803753

Please sign in to comment.