forked from wp-graphql/wp-graphql
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpstan.neon.dist
27 lines (27 loc) · 1.46 KB
/
phpstan.neon.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
parameters:
level: 8
inferPrivatePropertyTypeFromConstructor: true
checkMissingIterableValueType: false
bootstrapFiles:
- phpstan/constants.php
- wp-graphql.php
- access-functions.php
paths:
- wp-graphql.php
- access-functions.php
- src/
ignoreErrors:
# Uses func_get_args()
# Ignore any filters that are applied with more than 2 paramaters
- '#^Function apply_filters(_ref_array)? invoked with ([1-9]|1[0-2]) parameters, 2 required\.$#'
- "#Access to an undefined property WP_Post_Type::\\$graphql_single_name.#"
- "#Access to an undefined property WP_Post_Type::\\$graphql_plural_name.#"
- "#Access to an undefined property WP_Post_Type::\\$show_in_graphql.#"
- "#Cannot access property \\$graphql_single_name on WP_Taxonomy\\|false.#"
- "#Cannot access property \\$graphql_plural_name on WP_Taxonomy\\|false.#"
- "#Cannot access property \\$graphql_single_name on WP_Post_Type\\|null.#"
- "#Access to an undefined property WP_Taxonomy::\\$graphql_single_name.#"
- "#Access to an undefined property WP_Taxonomy::\\$graphql_plural_name.#"
- "#Access to an undefined property WP_Taxonomy::\\$show_in_graphql.#"
- "#^Parameter \\#1 \\$taxonomy of function get_taxonomy expects string, WP_Taxonomy given.#"
- "#^Parameter \\#1 \\$post_type of function get_post_type_object expects string, string|WP_Taxonomy given.#"