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

Commit e3755fe

Browse files
committed
Fix running PHPStan.
1 parent bc49cd4 commit e3755fe

4 files changed

Lines changed: 207 additions & 6 deletions

File tree

phpstan.neon.dist

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
includes:
2+
- vendor-bin/phpstan/vendor/szepeviktor/phpstan-wordpress/extension.neon
13
parameters:
24
customRulesetUsed: false
35
level: max
46
bootstrapFiles:
5-
- tests/bootstrap.php
7+
- tests/phpstan/bootstrap.php
68
paths:
7-
- src
9+
- src/

tests/phpstan/bootstrap.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
/**
3+
* Definitions for PHPStan.
4+
*
5+
* @author Pronamic <info@pronamic.eu>
6+
* @copyright 2005-2021 Pronamic
7+
* @license GPL-3.0-or-later
8+
* @package Pronamic\WordPress\Pay
9+
*/
10+
11+
define( 'SCRIPT_DEBUG', true );

vendor-bin/phpstan/composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"require-dev": {
3-
"phpstan/phpstan": "^0.12"
4-
}
2+
"require-dev": {
3+
"phpstan/phpstan": "^0.12",
4+
"szepeviktor/phpstan-wordpress": "^0.7"
5+
}
56
}

vendor-bin/phpstan/composer.lock

Lines changed: 188 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)