Skip to content

Commit f6eae5c

Browse files
committed
PHPStan level 6
1 parent be3c511 commit f6eae5c

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
parameters:
2-
level: 3
2+
level: 6
33
errorFormat: raw
44
editorUrl: '%%file%% %%line%% %%column%%: %%error%%'
55
paths:

src/PHPFUI/PHPUnitSyntaxCoverage/ClassFinder.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
class ClassFinder extends \PhpParser\NodeVisitorAbstract
1616
{
17+
/**
18+
* @var array<string> $classes
19+
*/
1720
private array $classes = [];
1821

1922
private string $currentNamespace = '';
@@ -37,6 +40,9 @@ public function getNamespace() : string
3740
return $this->currentNamespace;
3841
}
3942

43+
/**
44+
* @return array<string>
45+
*/
4046
public function getClasses() : array
4147
{
4248
return $this->classes;

src/PHPFUI/PHPUnitSyntaxCoverage/Extensions.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,14 @@ class Extensions extends \PHPUnit\Framework\TestCase implements \PHPUnit\Runner\
1616
{
1717
private static \PhpParser\Parser $parser;
1818

19+
/**
20+
* @var array<string> $skipDirectories
21+
*/
1922
private array $skipDirectories = [];
2023

24+
/**
25+
* @var array<string> $skipNamespaces
26+
*/
2127
private array $skipNamespaces = [];
2228

2329
private bool $skipNamespaceTest = false;
@@ -119,6 +125,8 @@ public function addSkipNamespace(string $namespace) : self
119125

120126
/**
121127
* Validate all files in a directory. Recursive and only looks at .php files by default.
128+
*
129+
* @param array<string> $extensions to test
122130
*/
123131
public function assertValidPHPDirectory(string $directory, string $message = '', bool $recurseSubdirectories = true, array $extensions = ['.php']) : void
124132
{

0 commit comments

Comments
 (0)