forked from phpstan/phpstan-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbaseline-pre-8.0.neon
More file actions
153 lines (128 loc) · 6.45 KB
/
Copy pathbaseline-pre-8.0.neon
File metadata and controls
153 lines (128 loc) · 6.45 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
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
152
153
parameters:
ignoreErrors:
-
message: '#^Call to function method_exists\(\) with ReflectionFunction and ''getClosureCalledCla…'' will always evaluate to false\.$#'
identifier: function.impossibleType
count: 1
path: ../src/Type/ClosureTypeFactory.php
-
rawMessage: Asserted type PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum for $this->reflection with type ReflectionClass can never happen.
identifier: assert.impossibleType
count: 1
path: ../src/Reflection/ClassReflection.php
-
rawMessage: 'Call to an undefined method ReflectionClass::getAttributes().'
identifier: method.notFound
count: 3
path: ../src/Reflection/ClassReflection.php
-
rawMessage: 'Call to an undefined method ReflectionClass::isReadOnly().'
identifier: method.notFound
count: 1
path: ../src/Reflection/ClassReflection.php
-
rawMessage: Instanceof between ReflectionClass and PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum will always evaluate to false.
identifier: instanceof.alwaysFalse
count: 4
path: ../src/Reflection/ClassReflection.php
-
rawMessage: 'Method PHPStan\Reflection\ClassReflection::__construct() has parameter $reflection with generic class ReflectionClass but does not specify its types: T'
identifier: missingType.generics
count: 1
path: ../src/Reflection/ClassReflection.php
-
rawMessage: 'Method PHPStan\Reflection\ClassReflection::findConstructor() should return PHPStan\BetterReflection\Reflection\Adapter\ReflectionMethod<TReflectedClass of object>|null but returns ReflectionMethod.'
identifier: return.type
count: 2
path: ../src/Reflection/ClassReflection.php
-
rawMessage: 'Method PHPStan\Reflection\ClassReflection::getBackedEnumType() never returns PHPStan\Type\Type so it can be removed from the return type.'
identifier: return.unusedType
count: 1
path: ../src/Reflection/ClassReflection.php
-
rawMessage: 'Method PHPStan\Reflection\ClassReflection::getNativeReflection() never returns PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum so it can be removed from the return type.'
identifier: return.unusedType
count: 1
path: ../src/Reflection/ClassReflection.php
-
rawMessage: 'Method PHPStan\Reflection\ClassReflection::getNativeReflection() should return PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum but returns ReflectionClass.'
identifier: return.type
count: 1
path: ../src/Reflection/ClassReflection.php
-
rawMessage: PHPDoc tag @param for parameter $reflection with type PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum is not subtype of native type ReflectionClass.
identifier: parameter.phpDocType
count: 1
path: ../src/Reflection/ClassReflection.php
-
rawMessage: PHPDoc tag @var for property PHPStan\Reflection\ClassReflection::$reflection with type PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum is not subtype of native type ReflectionClass.
identifier: property.phpDocType
count: 1
path: ../src/Reflection/ClassReflection.php
-
rawMessage: 'Parameter #1 $class of method PHPStan\Reflection\ClassReflection::collectTraits() expects PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum, ReflectionClass given.'
identifier: argument.type
count: 1
path: ../src/Reflection/ClassReflection.php
-
rawMessage: 'Parameter #1 $reflection of method PHPStan\Reflection\Deprecation\DeprecationProvider::getClassDeprecation() expects PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum, ReflectionClass given.'
identifier: argument.type
count: 1
path: ../src/Reflection/ClassReflection.php
-
rawMessage: 'Property PHPStan\Reflection\ClassReflection::$reflection with generic class ReflectionClass does not specify its types: T'
identifier: missingType.generics
count: 1
path: ../src/Reflection/ClassReflection.php
-
rawMessage: Result of && is always false.
identifier: booleanAnd.alwaysFalse
count: 1
path: ../src/Reflection/ClassReflection.php
-
rawMessage: Unreachable statement - code above always terminates.
identifier: deadCode.unreachable
count: 3
path: ../src/Reflection/ClassReflection.php
-
rawMessage: 'Method PHPStan\Reflection\ClassReflectionFactory::create() has parameter $reflection with generic class ReflectionClass but does not specify its types: T'
identifier: missingType.generics
count: 1
path: ../src/Reflection/ClassReflectionFactory.php
-
rawMessage: PHPDoc tag @param for parameter $reflection with type PHPStan\BetterReflection\Reflection\Adapter\ReflectionClass|PHPStan\BetterReflection\Reflection\Adapter\ReflectionEnum is not subtype of native type ReflectionClass.
identifier: parameter.phpDocType
count: 1
path: ../src/Reflection/ClassReflectionFactory.php
-
message: '#^Parameter \#3 of function sprintf is expected to be string by placeholder \#2 \("%%s"\), string\|false given\.$#'
count: 1
path: ../src/Cache/FileCacheStorage.php
-
message: '#^Parameter \#3 of function sprintf is expected to be string by placeholder \#2 \("%%s"\), string\|false given\.$#'
count: 1
path: ../src/Rules/Cast/InvalidCastRule.php
-
message: '#^Parameter \#2 of function sprintf is expected to be string by placeholder \#1 \("%%s"\), string\|false given\.$#'
count: 1
path: ../src/Rules/ClassForbiddenNameCheck.php
-
message: '#^Parameter \#1 \$array \(non-empty-list<PHPStan\\Type\\Type>\) of array_values is already a list, call has no effect\.$#'
count: 1
path: ../src/Type/TypeCombinator.php
-
rawMessage: Access to property $id of internal class Symfony\Polyfill\Php80\PhpToken from outside its root namespace Symfony.
identifier: property.internalClass
count: 1
path: ../src/Parser/RichParser.php
-
rawMessage: Access to property $line of internal class Symfony\Polyfill\Php80\PhpToken from outside its root namespace Symfony.
identifier: property.internalClass
count: 4
path: ../src/Parser/RichParser.php
-
rawMessage: Access to property $text of internal class Symfony\Polyfill\Php80\PhpToken from outside its root namespace Symfony.
identifier: property.internalClass
count: 3
path: ../src/Parser/RichParser.php