File tree Expand file tree Collapse file tree 6 files changed +19
-11
lines changed Expand file tree Collapse file tree 6 files changed +19
-11
lines changed Original file line number Diff line number Diff line change 92
92
>
93
93
<arg value =" analyse" />
94
94
<arg value =" -l" />
95
- <arg value =" 4 " />
95
+ <arg value =" 7 " />
96
96
<arg value =" -c" />
97
97
<arg path =" phpstan.neon" />
98
98
<arg path =" src" />
Original file line number Diff line number Diff line change 4
4
"license" : [" MIT" ],
5
5
"minimum-stability" : " dev" ,
6
6
"prefer-stable" : true ,
7
+ "extra" : {
8
+ "branch-alias" : {
9
+ "dev-master" : " 0.7-dev"
10
+ }
11
+ },
7
12
"require" : {
8
13
"php" : " ~7.0" ,
9
- "phpstan/phpstan" : " ^0.6 " ,
14
+ "phpstan/phpstan" : " ^0.7 " ,
10
15
"dibi/dibi" : " ~3.0"
11
16
},
12
17
"require-dev" : {
13
- "consistence/coding-standard" : " ~0.12.0" ,
18
+ "consistence/coding-standard" : " ~0.13.0" ,
19
+ "jakub-onderka/php-parallel-lint" : " ^0.9.2" ,
14
20
"phing/phing" : " ^2.13.0" ,
15
21
"phpunit/phpunit" : " ^5.3" ,
16
22
"satooshi/php-coveralls" : " ^1.0" ,
17
- "slevomat/coding-standard" : " dev-php7#961090ac32 "
23
+ "slevomat/coding-standard" : " ^2.0 "
18
24
},
19
25
"autoload" : {
20
26
"psr-4" : {
Original file line number Diff line number Diff line change 1
1
parameters :
2
2
ignoreErrors :
3
- - ' #Call to an undefined method PHPUnit_Framework_MockObject_MockObject::[a-zA-Z0-9_ ] +\ ( \) #'
3
+ - ' #PHPUnit_Framework_MockObject_MockObject given #'
Original file line number Diff line number Diff line change 7
7
<exclude name =" SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces" />
8
8
<exclude name =" SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly" />
9
9
</rule >
10
- <rule ref =" SlevomatCodingStandard.Typehints .TypeHintDeclaration" >
10
+ <rule ref =" SlevomatCodingStandard.TypeHints .TypeHintDeclaration" >
11
11
<properties >
12
12
<property name =" usefulAnnotations" type =" array" value ="
13
13
@dataProvider
14
14
" />
15
+ <property name =" enableNullableTypeHints" type =" false" />
16
+ <property name =" enableVoidTypeHint" type =" false" />
15
17
</properties >
16
18
</rule >
19
+ <rule ref =" SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification" >
20
+ <exclude-pattern >tests/</exclude-pattern ><!-- it's useless to add "@return mixed[]" to all data providers -->
21
+ </rule >
17
22
</ruleset >
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function isPublic(): bool
67
67
68
68
public function getReturnType (): Type
69
69
{
70
- return new ObjectType (\Dibi \Fluent::class, false );
70
+ return new ObjectType (\Dibi \Fluent::class);
71
71
}
72
72
73
73
}
Original file line number Diff line number Diff line change 3
3
namespace PHPStan \Reflection \Dibi ;
4
4
5
5
use PHPStan \Reflection \ClassReflection ;
6
- use PHPStan \Type \ObjectType ;
7
6
8
7
class DibiFluentClassReflectionExtensionTest extends \PHPUnit_Framework_TestCase
9
8
{
@@ -54,9 +53,7 @@ public function testGetMethod()
54
53
$ this ->assertTrue ($ methodReflection ->isVariadic ());
55
54
$ this ->assertFalse ($ methodReflection ->isPrivate ());
56
55
$ this ->assertTrue ($ methodReflection ->isPublic ());
57
- $ this ->assertInstanceOf (ObjectType::class, $ methodReflection ->getReturnType ());
58
- $ this ->assertSame (\Dibi \Fluent::class, $ methodReflection ->getReturnType ()->getClass ());
59
- $ this ->assertFalse ($ methodReflection ->getReturnType ()->isNullable ());
56
+ $ this ->assertSame (\Dibi \Fluent::class, $ methodReflection ->getReturnType ()->describe ());
60
57
}
61
58
62
59
}
You can’t perform that action at this time.
0 commit comments