parameters: level: 6 paths: - src excludePaths: - src/vendor/* ignoreErrors: # WordPress functions and constants - '#Function (wp_|add_|get_|current_|esc_|sanitize_|is_admin|defined|admin_url|check_admin_referer|is_plugin_active|update_option|dbDelta|WP_Filesystem)[a-zA-Z_]+ not found#' - '#Constant (CARE_BOOK_ULTIMATE_|WP_DEBUG|HOUR_IN_SECONDS|DAY_IN_SECONDS|FS_CHMOD_FILE)[a-zA-Z_]+ not found#' # WordPress classes - '#Instantiated class (WP_REST_Response|WP_Filesystem_Base) not found#' - '#Parameter .* has invalid type (WP_REST_Request|WP_Filesystem_Base)#' - '#Method .* has invalid return type (WP_Filesystem_Base)#' # Mixed types for WordPress compatibility - '#Parameter .* of method .* expects .*, mixed given#' # Allow certain patterns - '#Call to an undefined method .* on an unknown class#' - '#Argument of an invalid type .* supplied for foreach, only iterables are supported#' - '#Negated boolean expression is always true#' bootstrapFiles: - tests/bootstrap.php