parameters: # Target PHP version for analysis phpVersion: 70400 # Strictness level: start at 5 and increase over time level: 5 # Specify folders/files to analyze paths: - core - booktics.php # Ignore third-party/vendor code (if applicable) excludePaths: analyse: - */vendor/* - */node_modules/* analyseAndScan: - */tests/data/* - */base/some-generated-file.php # Optional: suppress PHPDoc auto-return warnings checkExplicitMixedMissingReturn: false parallel: maximumNumberOfProcesses: 2 # Common false-positive suppression (WordPress functions, globals) ignoreErrors: - '#Call to unknown function (do_action|apply_filters|add_action|add_filter|__|_e|esc_html|esc_attr).*#' - '#Access to an undefined property\$.*#' - '#Function .* not found.*#' # Do not warn on unmatched ignore patterns reportUnmatchedIgnoredErrors: false # Cache config (improves speed on reruns) tmpDir: %currentWorkingDirectory%/phpstan-cache # Optional: baseline on existing errors to focus on new ones only # baseline: phpstan-baseline.neon