forked from timber/timber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
27 lines (27 loc) · 1.14 KB
/
phpstan.neon
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:
editorUrl: 'vscode://file/%%file%%:%%line%%'
level: 2 # Increase until "max"
paths:
- src/
scanFiles:
- vendor/php-stubs/wp-cli-stubs/wp-cli-stubs.php
- vendor/php-stubs/acf-pro-stubs/acf-pro-stubs.php
excludePaths:
- tests/*
- docs/*
ignoreErrors:
- '#Instantiated class Twig\\CacheExtension\\CacheStrategy\\GenerationalCacheStrategy not found.#'
- '#Instantiated class Twig\\CacheExtension\\Extension not found.#'
- '#Method Timber\\Loader::_get_cache_extension\(\) has invalid return type Twig\\CacheExtension\\Extension.#'
# Uses func_get_args()
- '#^Function remove_filter invoked with [3456] parameters, 2-3 required\.$#'
- '#^Function apply_filters invoked with [3456] parameters, 2 required\.$#'
# ACF
- '#Access to an undefined property ACF::\$fields\.#'
# # TODO Do not create a static instance of a non-final class.
# - '#^Unsafe usage of new static\(\)\.$#'
services:
-
class: TimberPHPStan\WPNavMenuItemPost
tags:
- phpstan.broker.propertiesClassReflectionExtension