File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 if (strpos ($ class , 'PHPStan \\PhpDocParser \\' ) === 0 ) {
2828 return ;
2929 }
30-
31- $ isPhpStan = strpos ($ class , 'PHPStan \\' ) === 0 ;
32- $ isBetterReflection = strpos ($ class , 'Roave \\BetterReflection \\' ) === 0 ;
33- if (!$ isPhpStan && !$ isBetterReflection ) {
30+ if (strpos ($ class , 'PHPStan \\' ) !== 0 ) {
3431 return ;
3532 }
3633
3936 }
4037
4138 $ filename = str_replace ('\\' , DIRECTORY_SEPARATOR , $ class );
42-
43- if ($ isPhpStan ) {
44- $ filename = substr ($ filename , strlen ('PHPStan \\' ));
45- $ filepath = 'phar:// ' . __DIR__ . '/phpstan.phar/src/ ' . $ filename . '.php ' ;
46- } elseif ($ isBetterReflection ) {
47- $ filename = substr ($ filename , strlen ('Roave \\BetterReflection \\' ));
48- $ filepath = 'phar:// ' . __DIR__ . '/phpstan.phar/vendor/ondrejmirtes/better-reflection/src/ ' . $ filename . '.php ' ;
49- } else {
50- return ;
51- }
52-
39+ $ filename = substr ($ filename , strlen ('PHPStan \\' ));
40+ $ filepath = 'phar:// ' . __DIR__ . '/phpstan.phar/src/ ' . $ filename . '.php ' ;
5341 if (!file_exists ($ filepath )) {
5442 return ;
5543 }
You can’t perform that action at this time.
0 commit comments