Skip to content

cleanup phpstan #223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions phpstan.tests.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,6 @@ parameters:
- tests/*/Fixtures/*

ignoreErrors:
# not sure what is going on here
-
message: "#^Interface Iterator specifies template type TKey of interface Traversable as string but it's already specified as mixed\\.$#"
count: 1
path: tests/PHPCR/Tests/Stubs/MockNodeTypeManager.php

-
message: "#^Interface Iterator specifies template type TValue of interface Traversable as PHPCR\\\\NodeType\\\\NodeTypeInterface but it's already specified as mixed\\.$#"
count: 1
path: tests/PHPCR/Tests/Stubs/MockNodeTypeManager.php

# too pedantic for tests
-
message: "#^Parameter \\#1 \\.\\.\\.\\$arrays of function array_merge expects array, array\\<int, string\\>\\|false given\\.$#"
Expand Down
2 changes: 1 addition & 1 deletion tests/PHPCR/Tests/Stubs/MockNodeTypeManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use PHPCR\NodeType\NodeTypeManagerInterface;

/**
* @implements \Iterator<string, NodeTypeInterface>
* @implements \Iterator<mixed, NodeTypeInterface>
*/
abstract class MockNodeTypeManager implements \Iterator, NodeTypeManagerInterface
{
Expand Down