Skip to content

Commit 919eb56

Browse files
committed
Ensure that PHPStan can see PHPUnit Bridge, fix broken docblock in test class
1 parent f038f0a commit 919eb56

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

phpstan.neon.dist

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
parameters:
22
level: 6
3+
4+
# Code to be analyzed
35
paths:
46
- src
57
- tests
8+
9+
# Don't worry about the coverage reports
610
excludePaths:
711
- tests/coverage
12+
13+
# PHPUnit Bridge puts the PHPUnit source in an unconventional location
14+
scanDirectories:
15+
- vendor/bin/.phpunit/phpunit

tests/MarkupAssertionsTraitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ public function getInnerHtmlOfMatchedElements_should_retrieve_the_inner_HTML(
285285
/**
286286
* Data provider for testFlattenAttributeArray().
287287
*
288-
* @return array<string,array{array<string,string>,string}>
288+
* @return array<string,array{array<string,?string>,string}>
289289
*/
290290
public function provideAttributes(): array
291291
{

0 commit comments

Comments
 (0)