File tree Expand file tree Collapse file tree 3 files changed +9
-20
lines changed
Expand file tree Collapse file tree 3 files changed +9
-20
lines changed Original file line number Diff line number Diff line change 22language : php
33
44php :
5- - " 7.0"
65 - " 7.1"
6+ - " 7.2"
77 - nightly
88
99env :
Original file line number Diff line number Diff line change 55 "license" : " MIT" ,
66 "require" : {
77 "myclabs/php-enum" : " ^1.2" ,
8- "phpstan/phpstan" : " ^0.6 || ^0.7 || ^0.8 || ^0.9 "
8+ "phpstan/phpstan" : " ^0.10 "
99 },
1010 "require-dev" : {
1111 "phpunit/phpunit" : " ^6.0"
Original file line number Diff line number Diff line change 44
55namespace Timeweb \PHPStan \Reflection ;
66
7+ use PHPStan \Reflection \ClassMemberReflection ;
78use PHPStan \Reflection \ClassReflection ;
89use PHPStan \Reflection \MethodReflection ;
9- use PHPStan \Type \ObjectType ;
10- use PHPStan \Type \Type ;
1110
1211class EnumMethodReflection implements MethodReflection
1312{
@@ -32,21 +31,6 @@ public function getName(): string
3231 return $ this ->name ;
3332 }
3433
35- public function getParameters (): array
36- {
37- return [];
38- }
39-
40- public function isVariadic (): bool
41- {
42- return false ;
43- }
44-
45- public function getReturnType (): Type
46- {
47- return new ObjectType ($ this ->classReflection ->getName (), false );
48- }
49-
5034 public function getDeclaringClass (): ClassReflection
5135 {
5236 return $ this ->classReflection ;
@@ -67,8 +51,13 @@ public function isPublic(): bool
6751 return true ;
6852 }
6953
70- public function getPrototype (): MethodReflection
54+ public function getPrototype (): ClassMemberReflection
7155 {
7256 return $ this ;
7357 }
58+
59+ public function getVariants (): array
60+ {
61+ return [];
62+ }
7463}
You can’t perform that action at this time.
0 commit comments