Skip to content

Commit 33f7273

Browse files
authored
Merge pull request #5 from lkck24/PHPStan_for_tests
Phpstan for tests folder
2 parents 1661589 + e5fe80d commit 33f7273

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

phpstan.neon.dist

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ parameters:
66
level: max
77
paths:
88
- src
9+
- tests

tests/ObjectGraphGeneratorTest.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ class ObjectGraphGeneratorTest extends TestCase
1717
/**
1818
* @test
1919
* @dataProvider dataForTest
20-
*
21-
* @param string $class
20+
* @param class-string $class
2221
*/
2322
public function itShouldGenerateObjectOfGivenType(string $class): void
2423
{
@@ -42,6 +41,9 @@ public function itShouldUseTemporaryConfigBeforeRegistry(): void
4241
$this->assertTrue($actual->isBar());
4342
}
4443

44+
/**
45+
* @return array<string,array<class-string>>
46+
*/
4547
public function dataForTest(): array
4648
{
4749
return [

0 commit comments

Comments
 (0)