forked from phpDocumentor/guides
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
35 lines (30 loc) · 1.9 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
parameters:
level: max
inferPrivatePropertyTypeFromConstructor: true
treatPhpDocTypesAsCertain: false
ignoreErrors:
# FlyFinder plugin adds a find method to FlySystem's Filesystem
- '#Call to an undefined method League\\Flysystem\\FilesystemInterface::find\(\)#'
- '#Method phpDocumentor\\Guides\\Handlers\\ParseDirectoryHandler::handle\(\) should return array<phpDocumentor\\Guides\\Nodes\\DocumentNode> but returns array<int<0, max>, mixed>#'
- '#Cannot call method end\(\) on Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface\|null.#'
-
message: '#Unreachable statement - code above always terminates\.#'
path: packages/guides-restructured-text/tests/unit/Parser/Productions/GridTableRuleTest.php
# 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-markdown/src
- packages/guides-restructured-text/src
- packages/guides/tests
# - packages/guides-markdown/tests
- packages/guides-restructured-text/tests
tmpDir: .build/phpstan/