-
-
Notifications
You must be signed in to change notification settings - Fork 71
/
phpstan.neon
44 lines (44 loc) · 2.36 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
parameters:
level: 9
scanDirectories:
- lam/lib
- lam/templates
paths:
- lam/lib
- lam/templates
fileExtensions:
- php
excludePaths:
analyseAndScan:
- */3rdParty/*
ignoreErrors:
- '#.* on an unknown class .*#'
- '#.* has invalid type .*#'
- '#Function [a-zA-Z0-9\\_-]+ not found.#'
- '#Class [a-zA-Z0-9\\_-]+ not found.#'
- '#Instantiated class [a-zA-Z0-9\\_-]+ not found.#'
- '#Caught class [a-zA-Z0-9\\_-]+ not found.#'
- '#Used function [a-zA-Z0-9\\_-]+ not found.#'
- '#Variable \$helpArray might not be defined.#'
- '#Function [a-zA-Z0-9\(\)\\_-]+ has invalid return type [a-zA-Z0-9\\_-]+.#'
- '#PHPDoc tag @throws with type LAMException is not subtype of Throwable#'
- '#Throwing object of an unknown class [a-zA-Z0-9\\_-]+.#'
- '#Parameter \#[0-9] \$[a-zA-Z_]+ of function [a-zA-Z_]+ expects [(]?callable.*#'
- '#Call to an undefined method object::.*#'
- '#Parameter \#2 \$string of function explode expects string, array<int, string>\|string given.#'
- '#Parameter \#2 \$result of function ldap_.* expects LDAP\\Result, array\|LDAP\\Result given.#'
- '#Cannot assign new offset to array<int, string>\|string.#'
- '#Cannot access offset .* on mixed.#'
- '#Cannot access offset .* on array\|int.#'
- '#Cannot access an offset on array\|Countable.#'
- '#Parameter \#1 \$haystack of function str_starts_with expects string, int\|string given.#'
- '#Parameter \#3 \$length of function substr expects int\|null, int<0, max>\|false given.#'
- '#Parameter \#1 \$string of function htmlspecialchars expects string, array<int, string>\|string given.#'
- '#Parameter \#1 \$name of function LAM\\ACCOUNTLIST\\search_username expects string, array<int, string>\|string given.#'
- '#Parameter \#1 \$array of function array_keys expects array, mixed given.#'
- '#Argument of an invalid type mixed supplied for foreach, only iterables are supported.#'
- '#Parameter \#2 \$args of function call_user_func_array expects array<int\|string, mixed>, mixed given.#'
- '#Parameter \#1 \$input of static method LAM\\AJAX\\Ajax::managePasswordChange\(\) expects array, mixed given.#'
- '#Parameter \#1 \$input of method LAM\\AJAX\\Ajax::checkPasswordStrength\(\) expects array, mixed given.#'
- '#Cannot access offset non-falsy-string on array<int\|string, string>\|object.#'
- '#Unable to resolve the template type T in call to function array_values#'