This repository has been archived by the owner on Jul 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpstan.neon
67 lines (60 loc) · 2.47 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
services:
-
class: Symplify\PHPStanRules\Rules\RequireMethodCallArgumentConstantRule
tags: [phpstan.rules.rule]
arguments:
constantArgByMethodByType:
Symfony\Component\DependencyInjection\Loader\Configurator\ParametersConfigurator:
set: [0]
Symplify\PackageBuilder\Parameter\ParameterProvider:
provideArrayParameter: [0]
provideStringParameter: [0]
provideIntParameter: [0]
parameters:
paths:
- bin
- src
- tests
- config/config.php
- config/parameters.php
- config/_data
- ecs.php
- rector.php
level: max
reportUnmatchedIgnoredErrors: false
excludes_analyse:
# generated file
- config/_data/generated/*
ignoreErrors:
- '#Method TomasVotruba\\PhpFwTrends\\Result\\PackageDataFactory\:\:createPackagesData\(\) should return array<TomasVotruba\\PhpFwTrends\\ValueObject\\PackageData\> but returns array<TomasVotruba\\PhpFwTrends\\Contract\\LastYearTrendAwareInterface\>#'
-
message: '#Use value object over return of values#'
paths:
- src/Result/VendorDataFactory.php
-
message: '#Array with keys is not allowed\. Use value object to pass data instead#'
paths:
- src/ValueObject
- src/Result/VendorDataFactory.php
- '#Function "method_exists\(\)" cannot be used/left in the code#'
- '#Method call on new expression is not allowed#'
-
message: '#Use another value object over array with string-keys and objects, array<string, ValueObject>#'
paths:
- src/MergeMergeableVendors.php
-
message: '#Parameter "vendorData" cannot be nullable#'
paths:
- tests/MergeMergeableVendorsTest.php
-
message: '#Use custom exceptions instead of native "InvalidArgumentException#'
paths:
- tests/MergeMergeableVendorsTest.php
-
message: '#Use another value object over array with string-keys and objects, array<string, ValueObject>#'
paths:
- tests/MergeMergeableVendorsTest.php
-
message: '#Method call argument on position 0 must use constant \(e\.g\. "Option\:\:NAME"\) over value#'
paths:
- config/parameters.php