Skip to content

Commit

Permalink
Ignore unused parameters in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Art4 committed Oct 19, 2023
1 parent a46ee52 commit 1f165a4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,18 @@ parameters:
message: "#^Property Art4\\\\JsonApiClient\\\\V1\\\\ResourceNull\\:\\:\\$parent is never read, only written\\.$#"
count: 1
path: src/V1/ResourceNull.php

-
message: "#^Constructor of an anonymous class has an unused parameter \\$data\\.$#"
count: 1
path: tests/BC/ElementTest.php

-
message: "#^Constructor of an anonymous class has an unused parameter \\$manager\\.$#"
count: 1
path: tests/BC/ElementTest.php

-
message: "#^Constructor of an anonymous class has an unused parameter \\$parent\\.$#"
count: 1
path: tests/BC/ElementTest.php

0 comments on commit 1f165a4

Please sign in to comment.