Skip to content

Commit 778bc5a

Browse files
authored
Merge pull request #223 from phpcr/phpstan
cleanup phpstan
2 parents e369740 + aed4c29 commit 778bc5a

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

phpstan.tests.neon.dist

-11
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,6 @@ parameters:
88
- tests/*/Fixtures/*
99

1010
ignoreErrors:
11-
# not sure what is going on here
12-
-
13-
message: "#^Interface Iterator specifies template type TKey of interface Traversable as string but it's already specified as mixed\\.$#"
14-
count: 1
15-
path: tests/PHPCR/Tests/Stubs/MockNodeTypeManager.php
16-
17-
-
18-
message: "#^Interface Iterator specifies template type TValue of interface Traversable as PHPCR\\\\NodeType\\\\NodeTypeInterface but it's already specified as mixed\\.$#"
19-
count: 1
20-
path: tests/PHPCR/Tests/Stubs/MockNodeTypeManager.php
21-
2211
# too pedantic for tests
2312
-
2413
message: "#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, array\\<int, string\\>\\|false given\\.$#"

tests/PHPCR/Tests/Stubs/MockNodeTypeManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use PHPCR\NodeType\NodeTypeManagerInterface;
99

1010
/**
11-
* @implements \Iterator<string, NodeTypeInterface>
11+
* @implements \Iterator<mixed, NodeTypeInterface>
1212
*/
1313
abstract class MockNodeTypeManager implements \Iterator, NodeTypeManagerInterface
1414
{

0 commit comments

Comments
 (0)