Skip to content

Commit

Permalink
Include wp-config.php in symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
n7studios committed Dec 5, 2024
1 parent ab46055 commit fdb143a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ parameters:
scanDirectories:
- /home/runner/work/convertkit-woocommerce/convertkit-woocommerce/wordpress/wp-content/plugins

# Location of constants for PHPStan to scan, building symbols.
scanFiles:
- /home/runner/work/convertkit-woocommerce/convertkit-woocommerce/wordpress/wp-config.php

# Should not need to edit anything below here
# Rule Level: https://phpstan.org/user-guide/rule-levels
level: 5
Expand Down
8 changes: 6 additions & 2 deletions phpstan.neon.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# PHPStan configuration for local static analysis.
# PHPStan configuration for GitHub Actions.

# Include PHPStan for WordPress configuration.
includes:
Expand All @@ -19,7 +19,11 @@ parameters:

# Location of WordPress Plugins for PHPStan to scan, building symbols.
scanDirectories:
- /Users/tim/Local Sites/convertkit-github/app/public/wp-content/plugins
- /home/runner/work/convertkit-woocommerce/convertkit-woocommerce/wordpress/wp-content/plugins

# Location of constants for PHPStan to scan, building symbols.
scanFiles:
- /home/runner/work/convertkit-woocommerce/convertkit-woocommerce/wordpress/wp-config.php

# Should not need to edit anything below here
# Rule Level: https://phpstan.org/user-guide/rule-levels
Expand Down

0 comments on commit fdb143a

Please sign in to comment.