-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathphpstan.neon
53 lines (46 loc) · 2.32 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
53
includes:
- phpstan-baseline.neon
rules:
- Symplify\PHPStanRules\Rules\AnnotateRegexClassConstWithRegexLinkRule
- Symplify\PHPStanRules\Rules\RegexSuffixInRegexConstantRule
parameters:
level: max
strictRules:
allRules: false
strictCalls: true
requireParentConstructorCall: true
inferPrivatePropertyTypeFromConstructor: true
treatPhpDocTypesAsCertain: false
ignoreErrors:
# FlyFinder plugin adds a find method to FlySystem's Filesystem
- '#Call to an undefined method League\\Flysystem\\FilesystemInterface::find\(\)#'
-
message: '#Unreachable statement - code above always terminates\.#'
path: packages/guides-restructured-text/tests/unit/Parser/Productions/GridTableRuleTest.php
- message: '#Return type .* of method phpDocumentor\\Guides\\RestructuredText\\Parser\\Productions\\InlineMarkupRule::apply\(\) should be covariant with return type .*#'
# https://github.com/doctrine/lexer/pull/109
-
message: '#^Result of && is always false.|Strict comparison using \=\=\= between Doctrine\\Common\\Lexer\\Token and null will always evaluate to false\.$#'
paths:
- packages/guides-restructured-text/src/RestructuredText/Parser/Productions/InlineRules/AnnotationRoleRule.php
- packages/guides-restructured-text/src/RestructuredText/Parser/Productions/InlineRules/DefaultTextRoleRule.php
- packages/guides-restructured-text/src/RestructuredText/Parser/Productions/InlineRules/EmphasisRule.php
- packages/guides-restructured-text/src/RestructuredText/Parser/Productions/InlineRules/StrongRule.php
- packages/guides-restructured-text/src/RestructuredText/Parser/Productions/InlineRules/TextRoleRule.php
- packages/guides-restructured-text/src/RestructuredText/Parser/Productions/InlineRules/VariableInlineRule.php
paths:
- packages/guides/src
- packages/guides-code/src
- packages/guides-cli/src
- packages/guides-graphs/src
- packages/guides-markdown/src
- packages/guides-restructured-text/src
- packages/guides-theme-bootstrap/src
- packages/guides/tests
- packages/guides-cli/tests
- packages/guides-graphs/tests
- packages/guides-restructured-text/tests
- tests/ApplicationTestCase.php
- tests/Functional/FunctionalTest.php
- tests/Integration/IntegrationTest.php
tmpDir: .cache/phpstan/