File tree Expand file tree Collapse file tree 5 files changed +47
-8
lines changed Expand file tree Collapse file tree 5 files changed +47
-8
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,5 @@ before_script:
7
7
- composer install
8
8
script :
9
9
- vendor/bin/phing
10
- - >
11
- wget https://github.com/maglnet/ComposerRequireChecker/releases/download/0.2.1/composer-require-checker.phar
12
- && php composer-require-checker.phar check composer.json
13
10
after_script :
14
11
- php vendor/bin/coveralls -v
Original file line number Diff line number Diff line change 88
88
>
89
89
<arg value =" analyse" />
90
90
<arg value =" -l" />
91
- <arg value =" 7 " />
91
+ <arg value =" 8 " />
92
92
<arg value =" -c" />
93
93
<arg path =" phpstan.neon" />
94
94
<arg path =" src" />
Original file line number Diff line number Diff line change 7
7
"prefer-stable" : true ,
8
8
"extra" : {
9
9
"branch-alias" : {
10
- "dev-master" : " 0.11 -dev"
10
+ "dev-master" : " 0.12 -dev"
11
11
},
12
12
"phpstan" : {
13
13
"includes" : [
17
17
},
18
18
"require" : {
19
19
"php" : " ~7.1" ,
20
- "phpstan/phpstan" : " ^0.11.4 " ,
20
+ "phpstan/phpstan" : " ^0.12 " ,
21
21
"nikic/php-parser" : " ^4.0"
22
22
},
23
23
"require-dev" : {
24
24
"consistence/coding-standard" : " ^3.0.1" ,
25
25
"dealerdirect/phpcodesniffer-composer-installer" : " ^0.4.4" ,
26
26
"jakub-onderka/php-parallel-lint" : " ^1.0" ,
27
27
"phing/phing" : " ^2.13.0" ,
28
- "phpstan/phpstan-phpunit" : " ^0.11 " ,
29
- "phpstan/phpstan-strict-rules" : " ^0.11 " ,
28
+ "phpstan/phpstan-phpunit" : " ^0.12 " ,
29
+ "phpstan/phpstan-strict-rules" : " ^0.12 " ,
30
30
"phpunit/phpunit" : " ^7.0" ,
31
31
"satooshi/php-coveralls" : " ^1.0" ,
32
32
"slevomat/coding-standard" : " ^4.5.2" ,
Original file line number Diff line number Diff line change 6
6
use PHPStan \Reflection \ClassReflection ;
7
7
use PHPStan \Reflection \FunctionVariant ;
8
8
use PHPStan \Reflection \MethodReflection ;
9
+ use PHPStan \TrinaryLogic ;
10
+ use PHPStan \Type \Generic \TemplateTypeMap ;
9
11
use PHPStan \Type \ObjectType ;
10
12
11
13
class DibiFluentMethodReflection implements MethodReflection
@@ -60,11 +62,48 @@ public function getVariants(): array
60
62
{
61
63
return [
62
64
new FunctionVariant (
65
+ TemplateTypeMap::createEmpty (),
66
+ TemplateTypeMap::createEmpty (),
63
67
[],
64
68
true ,
65
69
new ObjectType ('Dibi\Fluent ' )
66
70
),
67
71
];
68
72
}
69
73
74
+ public function getDocComment (): ?string
75
+ {
76
+ return null ;
77
+ }
78
+
79
+ public function isDeprecated (): \PHPStan \TrinaryLogic
80
+ {
81
+ return TrinaryLogic::createNo ();
82
+ }
83
+
84
+ public function getDeprecatedDescription (): ?string
85
+ {
86
+ return null ;
87
+ }
88
+
89
+ public function isFinal (): \PHPStan \TrinaryLogic
90
+ {
91
+ return TrinaryLogic::createNo ();
92
+ }
93
+
94
+ public function isInternal (): \PHPStan \TrinaryLogic
95
+ {
96
+ return TrinaryLogic::createNo ();
97
+ }
98
+
99
+ public function getThrowType (): ?\PHPStan \Type \Type
100
+ {
101
+ return null ;
102
+ }
103
+
104
+ public function hasSideEffects (): \PHPStan \TrinaryLogic
105
+ {
106
+ return TrinaryLogic::createYes ();
107
+ }
108
+
70
109
}
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ protected function setUp(): void
20
20
$ this ->extension = new DibiFluentClassReflectionExtension ();
21
21
}
22
22
23
+ /**
24
+ * @return array<array{class-string, bool}>
25
+ */
23
26
public function dataHasMethod (): array
24
27
{
25
28
return [
You can’t perform that action at this time.
0 commit comments