This repository has been archived by the owner on Feb 15, 2024. It is now read-only.
generated from narrowspark/php-library-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon
52 lines (41 loc) · 2.35 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
45
46
47
48
49
50
51
52
includes:
- %currentWorkingDirectory%/vendor/narrowspark/coding-standard/base_rules.neon
parameters:
treatPhpDocTypesAsCertain: false
paths:
- %currentWorkingDirectory%/../src
- %currentWorkingDirectory%/../tests
bootstrap: %currentWorkingDirectory%/../vendor/autoload.php
autoload_directories:
- %currentWorkingDirectory%/../src
- %currentWorkingDirectory%/../tests
tmpDir: %currentWorkingDirectory%/phpstan
excludes_analyse:
ignoreErrors:
- '#should end with "Interface" suffix#'
- '#Parameter \#1 \$effects of method Testomat\\TerminalColour\\AbstractStyle\:\:setEffects\(\) expects#'
-
message: '#Strict comparison using \!\=\= between null and null will always evaluate to false#'
path: src/StyleCode.php
-
message: '#Only booleans are allowed in \&\&\, void given on the right side#'
path: src/Util.php
-
message: '#Result of function Safe\\sapi_windows_vt100_support \(void\) is used#'
path: src/Util.php
-
message: '#Right side of \&\& is always false#'
path: src/Util.php
-
message: '#Should not use function \"shell_exec\"\, please change the code#'
path: src/Util.php
-
message: '#Should not use function \"proc_open\"\, please change the code#'
path: src/Util.php
# stdClass is used for test
- '#Parameter \#1 \$effect of method Testomat\\TerminalColour\\Contract\\Style\:\:setEffect\(\) expects array\<string\, int\|string>\|string\, stdClass given#'
- '#Parameter \#1 \$effect of method Testomat\\TerminalColour\\Contract\\Style\:\:unsetEffect\(\) expects array\<string\, int\|string>\|string\, stdClass given#'
- '#Parameter \#1 \$color of method Testomat\\TerminalColour\\Style\:\:setForeground\(\) expects int\|string\|null\, stdClass given#'
- '#Parameter \#1 \$color of method Testomat\\TerminalColour\\Style\:\:setBackground\(\) expects int\|string\|null\, stdClass given#'
- '#Parameter \#1 \$color of method Testomat\\TerminalColour\\StyleCode\:\:setForeground\(\) expects int\|string\|null\, stdClass given#'
- '#Parameter \#1 \$color of method Testomat\\TerminalColour\\StyleCode\:\:setBackground\(\) expects int\|string\|null\, stdClass given#'