-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
Expand file tree
/
Copy pathphpstan.dist.neon
More file actions
54 lines (53 loc) · 2.9 KB
/
Copy pathphpstan.dist.neon
File metadata and controls
54 lines (53 loc) · 2.9 KB
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
54
includes:
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
- .github/sa-tools/rules.neon
parameters:
level: 5
reportUnmatchedIgnoredErrors: false
treatPhpDocTypesAsCertain: false
tmpDir: .github/sa-tools/phpstan-cache
paths:
- src
excludePaths:
- src/Symfony/*/Tests/*
- src/Symfony/*/*/Tests/*
- src/Symfony/*/*/*/Tests/*
- src/Symfony/*/*/*/*/Tests/*
- src/Symfony/Component/Intl/Resources/data/*
- src/Symfony/Component/Emoji/Resources/data/*
# these templates are include()'d in HtmlErrorRenderer's scope, so they can't be analyzed standalone
- src/Symfony/Component/ErrorHandler/Resources/views/*
ignoreErrors:
# Added in PHP 8.4
- '#^Class BcMath\\Number not found\.$#'
# DeferredBatchMessage::$acked aliases a bool that batch handlers flip during dispatch()
-
message: '#^If condition is always false\.$#'
path: src/Symfony/Component/Messenger/Worker.php
-
message: '#^Negated boolean expression is always true\.$#'
path: src/Symfony/Component/Messenger/Worker.php
# @implements binds the transformer to one class, but the generated code calls transform()
# with whatever the property holds, so each guard is reachable
-
message: '#^Instanceof between .+ and .+ will always evaluate to true\.$#'
path: src/Symfony/Component/JsonStreamer/Transformer/*ValueObjectTransformer.php
# private helpers are called from the .html.php templates, which run in the renderer's scope via include()
-
message: '#^Method Symfony\\Component\\ErrorHandler\\ErrorRenderer\\HtmlErrorRenderer\:\:\w+\(\) is unused\.$#'
path: src/Symfony/Component/ErrorHandler/ErrorRenderer/HtmlErrorRenderer.php
# the $groups argument is declared on the final AttributeMetadata, and left commented
# out on the interface so implementers are not forced to add it
-
message: '#^Method Symfony\\Component\\Serializer\\Mapping\\AttributeMetadataInterface\:\:(get|set)Serialized(Name|Path)\(\) invoked with [12] parameters?, [01] required\.$#'
path: src/Symfony/Component/Serializer/*.php
# the $fetchSize argument is a commented-out argument of ReceiverInterface::get(), documented
# with @param on implementations so DebugClassLoader does not report them
-
message: '#^PHPDoc tag @param references unknown parameter\: \$fetchSize$#'
path: src/Symfony/Component/Messenger/*
# the $regexp argument is a commented-out argument of the case conversion methods, documented
# with @param so that DebugClassLoader reports the implementations that do not declare it
-
message: '#^PHPDoc tag @param references unknown parameter\: \$regexp$#'
path: src/Symfony/Component/String/*