forked from zenstruck/foundry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan-baseline.neon
151 lines (122 loc) · 6.34 KB
/
phpstan-baseline.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
parameters:
ignoreErrors:
-
message: "#^Should not use node with type \"Expr_Eval\", please change the code\\.$#"
count: 1
path: src/AnonymousFactoryGenerator.php
-
message: "#^Method Zenstruck\\\\Foundry\\\\Configuration\\:\\:repositoryFor\\(\\) should return Zenstruck\\\\Foundry\\\\Persistence\\\\RepositoryDecorator\\<TObject of object\\> but returns Zenstruck\\\\Foundry\\\\Persistence\\\\ProxyRepositoryDecorator\\<object\\>\\|Zenstruck\\\\Foundry\\\\Persistence\\\\RepositoryDecorator\\<TObject of object\\>\\.$#"
count: 1
path: src/Configuration.php
-
message: "#^Parameter \\#1 \\$class of method Doctrine\\\\Persistence\\\\ManagerRegistry\\:\\:getManagerForClass\\(\\) expects class\\-string, string given\\.$#"
count: 1
path: src/Configuration.php
-
message: "#^Method Zenstruck\\\\Foundry\\\\Factory\\:\\:createAndUproxify\\(\\) should return TObject of object but returns object\\.$#"
count: 1
path: src/Factory.php
-
message: "#^Should not use function \"debug_backtrace\", please change the code\\.$#"
count: 2
path: src/Factory.php
-
message: "#^Method Zenstruck\\\\Foundry\\\\FactoryCollection\\:\\:create\\(\\) should return array\\<int, TObject of object\\> but returns array\\<int\\<0, max\\>, \\(TObject of object\\)\\|Zenstruck\\\\Foundry\\\\Persistence\\\\Proxy\\<TObject of object\\>\\>\\.$#"
count: 1
path: src/FactoryCollection.php
-
message: "#^Parameter \\#1 \\$min of function random_int expects int, int\\|null given\\.$#"
count: 1
path: src/FactoryCollection.php
-
message: "#^Parameter \\#2 \\$max of function random_int expects int, int\\|null given\\.$#"
count: 1
path: src/FactoryCollection.php
-
message: "#^Should not use function \"debug_backtrace\", please change the code\\.$#"
count: 1
path: src/FactoryCollection.php
-
message: "#^Class Zenstruck\\\\Foundry\\\\Instantiator extends @final class Zenstruck\\\\Foundry\\\\Object\\\\Instantiator\\.$#"
count: 1
path: src/Instantiator.php
-
message: "#^If condition is always false\\.$#"
count: 1
path: src/Instantiator.php
-
message: "#^Method Zenstruck\\\\Foundry\\\\ObjectFactory\\:\\:__callStatic\\(\\) should return array\\<int, TModel of object\\> but returns array\\<int, \\(TModel of object\\)\\|Zenstruck\\\\Foundry\\\\Persistence\\\\Proxy\\<TModel of object\\>\\>\\.$#"
count: 1
path: src/ObjectFactory.php
-
message: "#^Method Zenstruck\\\\Foundry\\\\ObjectFactory\\:\\:createSequence\\(\\) should return array\\<int, TModel of object\\> but returns array\\<int, \\(TModel of object\\)\\|Zenstruck\\\\Foundry\\\\Persistence\\\\Proxy\\<TModel of object\\>\\>\\.$#"
count: 1
path: src/ObjectFactory.php
-
message: "#^Should not use function \"debug_backtrace\", please change the code\\.$#"
count: 1
path: src/ObjectFactory.php
-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
count: 1
path: src/ObjectFactory.php
-
message: "#^Should not use function \"debug_backtrace\", please change the code\\.$#"
count: 1
path: src/Persistence/PersistentProxyObjectFactory.php
-
message: "#^Class Zenstruck\\\\Foundry\\\\Persistence\\\\ProxyRepositoryDecorator extends @final class Zenstruck\\\\Foundry\\\\Persistence\\\\RepositoryDecorator\\.$#"
count: 1
path: src/Persistence/ProxyRepositoryDecorator.php
-
message: "#^Method Zenstruck\\\\Foundry\\\\Persistence\\\\ProxyRepositoryDecorator\\:\\:proxyResult\\(\\) should return array\\<int, Zenstruck\\\\Foundry\\\\Persistence\\\\Proxy\\<TProxiedObject of object\\>\\>\\|Zenstruck\\\\Foundry\\\\Persistence\\\\Proxy\\<TProxiedObject of object\\> but returns \\(TProxiedObject of object\\)\\|null\\.$#"
count: 1
path: src/Persistence/ProxyRepositoryDecorator.php
-
message: "#^Method Zenstruck\\\\Foundry\\\\Persistence\\\\ProxyRepositoryDecorator\\:\\:proxyResult\\(\\) should return array\\<int, Zenstruck\\\\Foundry\\\\Persistence\\\\Proxy\\<TProxiedObject of object\\>\\>\\|Zenstruck\\\\Foundry\\\\Persistence\\\\Proxy\\<TProxiedObject of object\\> but returns Zenstruck\\\\Foundry\\\\Proxy\\.$#"
count: 1
path: src/Persistence/ProxyRepositoryDecorator.php
-
message: "#^PHPDoc tag @return with type Zenstruck\\\\Foundry\\\\Persistence\\\\Proxy\\<TObject of object\\> is not subtype of native type Zenstruck\\\\Foundry\\\\Proxy\\.$#"
count: 1
path: src/Proxy.php
-
message: "#^Class Zenstruck\\\\Foundry\\\\RepositoryAssertions extends @final class Zenstruck\\\\Foundry\\\\Persistence\\\\RepositoryAssertions\\.$#"
count: 1
path: src/RepositoryAssertions.php
-
message: "#^If condition is always false\\.$#"
count: 1
path: src/RepositoryAssertions.php
-
message: "#^Class Zenstruck\\\\Foundry\\\\RepositoryProxy extends @final class Zenstruck\\\\Foundry\\\\Persistence\\\\ProxyRepositoryDecorator\\.$#"
count: 1
path: src/RepositoryProxy.php
-
message: "#^If condition is always false\\.$#"
count: 1
path: src/RepositoryProxy.php
-
message: "#^Method Zenstruck\\\\Foundry\\\\Test\\\\DatabaseResetter\\:\\:getConfiguration\\(\\) should return Zenstruck\\\\Foundry\\\\Configuration\\|null but returns object\\|null\\.$#"
count: 1
path: src/Test/DatabaseResetter.php
-
message: "#^Parameter \\#1 \\$globalStateRegistry of static method Zenstruck\\\\Foundry\\\\Test\\\\TestState\\:\\:flushGlobalState\\(\\) expects Zenstruck\\\\Foundry\\\\Test\\\\GlobalStateRegistry\\|null, object\\|null given\\.$#"
count: 1
path: src/Test/DatabaseResetter.php
-
message: "#^Parameter \\#2 \\$registry of class Zenstruck\\\\Foundry\\\\Test\\\\ODMSchemaResetter constructor expects Doctrine\\\\Persistence\\\\ManagerRegistry, object\\|null given\\.$#"
count: 1
path: src/Test/DatabaseResetter.php
-
message: "#^Parameter \\#2 \\$registry of class Zenstruck\\\\Foundry\\\\Test\\\\ORMDatabaseResetter constructor expects Doctrine\\\\Persistence\\\\ManagerRegistry, object\\|null given\\.$#"
count: 1
path: src/Test/DatabaseResetter.php
-
message: "#^Call to an undefined method object\\:\\:getDatabasePlatform\\(\\)\\.$#"
count: 1
path: src/Test/ORMDatabaseResetter.php
-
message: "#^Parameter \\#1 \\$configuration of static method Zenstruck\\\\Foundry\\\\Factory\\<object\\>\\:\\:boot\\(\\) expects Zenstruck\\\\Foundry\\\\Configuration, object\\|null given\\.$#"
count: 1
path: src/ZenstruckFoundryBundle.php