File tree Expand file tree Collapse file tree 4 files changed +12
-3
lines changed
src/PHPFUI/PHPUnitSyntaxCoverage Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
- # PHPUnitSyntaxCoverage [ ![ Tests] ( https://github.com/phpfui/PHPUnitSyntaxCoverage/actions/workflows/tests.yml/badge.svg )] ( https://github.com/phpfui/PHPUnitSyntaxCoverage/actions?query=workflow%3Atests ) [ ![ Latest Packagist release] ( https://img.shields.io/packagist/v/phpfui/phpunit-syntax-coverage.svg )] ( https://packagist.org/packages/phpfui/phpunit-syntax-coverage )
1
+ # PHPUnitSyntaxCoverage [ ![ Tests] ( https://github.com/phpfui/PHPUnitSyntaxCoverage/actions/workflows/tests.yml/badge.svg )] ( https://github.com/phpfui/PHPUnitSyntaxCoverage/actions?query=workflow%3Atests ) [ ![ Latest Packagist release] ( https://img.shields.io/packagist/v/phpfui/phpunit-syntax-coverage.svg )] ( https://packagist.org/packages/phpfui/phpunit-syntax-coverage ) ![ ] ( https://img.shields.io/badge/PHPStan-level%206-brightgreen.svg?style=flat )
2
2
3
3
## PHPUnit Extension for complete PHP Syntax Code Coverage
4
4
Original file line number Diff line number Diff line change 27
27
"phpunit/phpunit" : " >=8.0" ,
28
28
"roave/security-advisories" : " dev-latest" ,
29
29
"friendsofphp/php-cs-fixer" : " ^3.0" ,
30
- "symfony/translation-contracts" : " >=2.3"
30
+ "symfony/translation-contracts" : " >=2.3" ,
31
+ "phpstan/phpstan" : " ^1.8"
31
32
}
32
33
}
Original file line number Diff line number Diff line change
1
+ parameters:
2
+ level: 3
3
+ errorFormat: raw
4
+ editorUrl: '%%file%% %%line%% %%column%%: %%error%%'
5
+ paths:
6
+ - src
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class ClassFinder extends \PhpParser\NodeVisitorAbstract
18
18
19
19
private string $ currentNamespace = '' ;
20
20
21
- public function enterNode (\PhpParser \Node $ node ) : void
21
+ public function enterNode (int | \PhpParser \Node | null $ node )
22
22
{
23
23
if ($ node instanceof \PhpParser \Node \Stmt \Namespace_)
24
24
{
@@ -28,6 +28,8 @@ public function enterNode(\PhpParser\Node $node) : void
28
28
{
29
29
$ this ->classes [] = $ this ->currentNamespace ? $ this ->currentNamespace . '\\' . $ node ->name ->name : $ node ->name ->name ;
30
30
}
31
+
32
+ return $ node ;
31
33
}
32
34
33
35
public function getNamespace () : string
You can’t perform that action at this time.
0 commit comments