Skip to content

Commit 6589ce9

Browse files
committed
tests: define PHPStan dynamicConstantNames
1 parent 8a3775f commit 6589ce9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/phpstan/base.neon

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ parameters:
1111
# The Minimum PHP Version
1212
phpVersion: 70224
1313

14+
# Constants that are expected to be defined by users.
15+
dynamicConstantNames:
16+
- WP_DEBUG
17+
- WP_DEBUG_LOG
18+
- WP_DEBUG_DISPLAY
19+
- SCRIPT_DEBUG
20+
- WP_CACHE
21+
- MEDIA_TRASH
22+
- FORCE_SSL_LOGIN
23+
- WP_POST_REVISIONS
24+
1425
# What directories and files should be scanned.
1526
paths:
1627
- ../../src

0 commit comments

Comments
 (0)