File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 19
19
"require" : {
20
20
"php" : " ^7.1" ,
21
21
"nikic/php-parser" : " ^4.4" ,
22
- "phpstan/phpstan" : " ^0.12.25 "
22
+ "phpstan/phpstan" : " ^0.12.26 "
23
23
},
24
24
"require-dev" : {
25
25
"nette/utils" : " ^3.0" ,
Original file line number Diff line number Diff line change 22
22
use PHPStan \PhpDoc \TypeNodeResolverExtension ;
23
23
use PHPStan \PhpDocParser \Lexer \Lexer ;
24
24
use PHPStan \PhpDocParser \Parser \PhpDocParser ;
25
+ use PHPStan \Reflection \ReflectionProvider \DirectReflectionProviderProvider ;
25
26
use PHPStan \Rules \Registry ;
26
27
use PHPStan \Rules \Rule ;
27
28
use PHPStan \Testing \TestCase ;
@@ -90,6 +91,7 @@ private function getAnalyser(): Analyser
90
91
);
91
92
92
93
$ fileTypeMapper = new FileTypeMapper (
94
+ new DirectReflectionProviderProvider ($ broker ),
93
95
$ this ->getParser (),
94
96
self ::getContainer ()->getByType (PhpDocStringResolver::class),
95
97
self ::getContainer ()->getByType (PhpDocNodeResolver::class),
@@ -100,6 +102,8 @@ private function getAnalyser(): Analyser
100
102
101
103
$ nodeScopeResolver = new NodeScopeResolver (
102
104
$ broker ,
105
+ self ::getReflectors ()[0 ],
106
+ $ this ->getClassReflectionExtensionRegistryProvider (),
103
107
$ this ->getParser (),
104
108
$ fileTypeMapper ,
105
109
$ phpDocInheritanceResolver ,
Original file line number Diff line number Diff line change 11
11
use Pepakriz \PHPStanExceptionRules \Rules \UnusedCatches \FooException ;
12
12
use Pepakriz \PHPStanExceptionRules \Rules \UnusedCatches \UnusedCatches ;
13
13
use Pepakriz \PHPStanExceptionRules \RuleTestCase ;
14
- use PharData ;
14
+ use Phar ;
15
15
use PHPStan \Rules \Rule ;
16
16
use PHPUnit \Framework \TestCase ;
17
17
use ReflectionException ;
@@ -107,7 +107,7 @@ public function testUnusedThrows(): void
107
107
public function testUnusedCatches (): void
108
108
{
109
109
$ this ->methodThrowTypes = [
110
- PharData ::class => [
110
+ Phar ::class => [
111
111
'extractTo ' => [
112
112
RuntimeException::class,
113
113
],
You can’t perform that action at this time.
0 commit comments