Skip to content

Commit 9424bb1

Browse files
committed
[PHPStam]: define dynamicConstantNames
1 parent 32d65f6 commit 9424bb1

3 files changed

Lines changed: 17 additions & 468 deletions

File tree

tests/phpstan/base.neon

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ parameters:
1313
min: 70224
1414
max: 80400
1515

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

0 commit comments

Comments
 (0)