File tree 2 files changed +10
-20
lines changed
2 files changed +10
-20
lines changed Original file line number Diff line number Diff line change 7
7
"require" : {
8
8
"php" : " ~7.1" ,
9
9
"marc-mabe/php-enum" : " ^1.0 || ^2.0 || ^3.0 || ^4.0" ,
10
- "phpstan/phpstan" : " ^0.10 || ^0.11 || ^0. 12"
10
+ "phpstan/phpstan" : " ^0.12"
11
11
},
12
12
"require-dev" : {
13
13
"phpunit/phpunit" : " ^7.5"
Original file line number Diff line number Diff line change @@ -63,25 +63,15 @@ public function getPrototype(): ClassMemberReflection
63
63
64
64
public function getVariants (): array
65
65
{
66
- if (true === (new \ReflectionClass (FunctionVariant::class))->hasMethod ('getTemplateTypeMap ' )) {
67
- return [
68
- new FunctionVariant (
69
- TemplateTypeMap::createEmpty (),
70
- TemplateTypeMap::createEmpty (),
71
- [],
72
- false ,
73
- new ObjectType ($ this ->classReflection ->getName ())
74
- ),
75
- ];
76
- } else {
77
- return [
78
- new FunctionVariant (
79
- [],
80
- false ,
81
- new ObjectType ($ this ->classReflection ->getName ())
82
- ),
83
- ];
84
- }
66
+ return [
67
+ new FunctionVariant (
68
+ TemplateTypeMap::createEmpty (),
69
+ TemplateTypeMap::createEmpty (),
70
+ [],
71
+ false ,
72
+ new ObjectType ($ this ->classReflection ->getName ())
73
+ ),
74
+ ];
85
75
}
86
76
87
77
public function getDocComment (): ?string
You can’t perform that action at this time.
0 commit comments