File tree Expand file tree Collapse file tree 2 files changed +9
-15
lines changed
src/Reflection/ReflectionProvider Expand file tree Collapse file tree 2 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,15 @@ parameters:
102
102
- ' #^Symfony\\Polyfill\\Php72\\ #i'
103
103
- ' #^Symfony\\Polyfill\\Intl\\Grapheme\\ #i'
104
104
- ' #^Composer\\ #i'
105
+ - ' #^ReflectionUnionType$ #i'
106
+ - ' #^Attribute$ #i'
107
+ - ' #^ReturnTypeWillChange$ #i'
108
+ - ' #^ReflectionIntersectionType$ #i'
109
+ - ' #^UnitEnum$ #i'
110
+ - ' #^BackedEnum$ #i'
111
+ - ' #^ReflectionEnum$ #i'
112
+ - ' #^ReflectionEnumUnitCase$ #i'
113
+ - ' #^ReflectionEnumBackedCase$ #i'
105
114
dynamicConstantNames :
106
115
- ICONV_IMPL
107
116
- LIBXML_VERSION
Original file line number Diff line number Diff line change 14
14
use PHPStan \ShouldNotHappenException ;
15
15
use ReflectionClass ;
16
16
use function class_exists ;
17
- use function in_array ;
18
- use function strtolower ;
19
17
20
18
class ClassBlacklistReflectionProvider implements ReflectionProvider
21
19
{
@@ -85,19 +83,6 @@ private function isClassBlacklisted(string $className): bool
85
83
if (!class_exists ($ className , false )) {
86
84
return true ;
87
85
}
88
- if (in_array (strtolower ($ className ), [
89
- 'reflectionuniontype ' ,
90
- 'attribute ' ,
91
- 'returntypewillchange ' ,
92
- 'reflectionintersectiontype ' ,
93
- 'unitenum ' ,
94
- 'backedenum ' ,
95
- 'reflectionenum ' ,
96
- 'reflectionenumunitcase ' ,
97
- 'reflectionenumbackedcase ' ,
98
- ], true )) {
99
- return true ;
100
- }
101
86
$ reflection = new ReflectionClass ($ className );
102
87
if ($ reflection ->getFileName () === false ) {
103
88
return true ;
You can’t perform that action at this time.
0 commit comments