File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 "nette/schema" : " ^1.0" ,
1616 "nette/utils" : " ^3.0" ,
1717 "nikic/php-parser" : " ^4.3.0" ,
18- "ondrejmirtes/better-reflection" : " ^3.5.4 " ,
18+ "ondrejmirtes/better-reflection" : " ^3.5.5 " ,
1919 "phpstan/phpdoc-parser" : " ^0.4.2" ,
2020 "symfony/console" : " ^4.3" ,
2121 "symfony/finder" : " ^4.3"
Original file line number Diff line number Diff line change @@ -195,6 +195,12 @@ public function testPropertyAssignIntersectionStaticTypeBug(): void
195195 $ this ->assertCount (0 , $ errors );
196196 }
197197
198+ public function testBug2823 (): void
199+ {
200+ $ errors = $ this ->runAnalyse (__DIR__ . '/data/bug-2823.php ' );
201+ $ this ->assertCount (0 , $ errors );
202+ }
203+
198204 /**
199205 * @param string $file
200206 * @return \PHPStan\Analyser\Error[]
Original file line number Diff line number Diff line change 1+ <?php declare (strict_types = 1 );
2+
3+ namespace Bug2823 ;
4+
5+ class Foo
6+ {
7+
8+ public function sayHello (): void
9+ {
10+ var_dump (new \LevelDB ("./somedir " ));
11+ }
12+
13+ }
You can’t perform that action at this time.
0 commit comments